forked from i32ropie/lol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLCS_bot.py
executable file
·40 lines (28 loc) · 1.14 KB
/
LCS_bot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env python3
#################################################
# IMPORTS #
#################################################
from colorclass import Color
print(Color(
'{autored}[{/red}{autoyellow}+{/yellow}{autored}]{/red} {autocyan}Cargando plugins...{/cyan}'))
from config import *
import importdir
import sys
#################################################
# BOT BODY #
#################################################
if sys.version_info.major < 3:
raise Exception("Must be using Python 3")
importdir.do('plugins', globals())
print(Color(
'{autored}[{/red}{autoyellow}+{/yellow}{autored}]{/red} {autocyan}Plugins cargados.{/cyan}'))
try:
bot.send_message(52033876, "@LoL_bot ha sido encendido")
except Exception as e:
bot.send_message(52033876, str(e))
print(Color(
'{autored}[{/red}{autoyellow}+{/yellow}{autored}]{/red} {autocyan}@LoL_bot ha sido encendido.{/cyan}\n'))
#################################################
# POLLING #
#################################################
bot.polling()