mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-21 19:57:48 +00:00
Added optional uvloop runtime
This commit is contained in:
@@ -69,6 +69,14 @@ class ChristmasBot(commands.Bot):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
import uvloop
|
||||
|
||||
uvloop.install()
|
||||
print("Succesfully initialized uvloop")
|
||||
except ModuleNotFoundError:
|
||||
pass
|
||||
|
||||
config = json.load(open("config.json", "r", encoding="utf-8"))
|
||||
token = config.pop("token")
|
||||
bot = ChristmasBot(config)
|
||||
|
||||
Reference in New Issue
Block a user