diff options
| author | 2019-11-20 14:41:14 +0000 | |
|---|---|---|
| committer | 2019-11-20 14:41:14 +0000 | |
| commit | 11c3104d029d85948b18bea2fa00bde7c6d37bc5 (patch) | |
| tree | 46e0a1518476c9827d469df1e9280df632da1991 /src/IRCBot.py | |
| parent | bot admins should be allowed to use !calias (diff) | |
| signature | ||
move things like IRCBot.VERSION to before imports (for utils.http)
Diffstat (limited to 'src/IRCBot.py')
| -rw-r--r-- | src/IRCBot.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/IRCBot.py b/src/IRCBot.py index bd00b0d6..9d354245 100644 --- a/src/IRCBot.py +++ b/src/IRCBot.py @@ -1,13 +1,14 @@ +VERSION: str = "" +with open("VERSION", "r") as version_file: + VERSION = "v%s" % version_file.read().strip() +SOURCE: str = "https://git.io/bitbot" +URL: str = "https://bitbot.dev" + import enum, queue, os, queue, select, socket, sys, threading, time, traceback import typing, uuid from src import EventManager, Exports, IRCServer, Logging, ModuleManager from src import PollHook, PollSource, Socket, Timers, utils -with open("VERSION", "r") as version_file: - VERSION = "v%s" % version_file.read().strip() -SOURCE = "https://git.io/bitbot" -URL = "https://bitbot.dev" - class TriggerResult(enum.Enum): Return = 1 Exception = 2 |
