-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKMS_Bot.py
93 lines (76 loc) · 2.99 KB
/
KMS_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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
from discord.ext import commands
from module.help import *
from module.simbol import *
from module.additional_options import *
from module.defense_percentage_ignore import *
from module.level import *
from module.information import *
from module.hangang import *
from module.logging import *
from module.gambling import *
from module.homepage import *
from module.linknunion import *
from module.BodyAndMindTrainingCenter import *
PREFIX = '#'
extension_list = ['module.help', 'module.simbol',
'module.additional_options', 'module.defense_percentage_ignore',
'module.level', 'module.hangang',
'module.linknunion',
'module.BodyAndMindTrainingCenter']
todolist=['module.gambling','module.information','module.homepage']
bot = commands.AutoShardedBot(command_prefix=PREFIX)
bot.remove_command('help')
for extension in extension_list:
bot.load_extension(extension)
#client = discord.Client()
@bot.event
async def on_ready():
print('Logged in as')
print(bot.user.name)
print(bot.user.id)
print('hello')
activity = discord.Game(name="#도움말 for help")
await bot.change_presence(status=discord.Status.idle, activity=activity)
@bot.event
async def on_message(message):
if message.author.bot:
return None
if message.content.startswith("#"):
logging_main(message)
if message.content.startswith("#정보") \
or message.content.startswith("#무릉") \
or message.content.startswith("#시드") \
or message.content.startswith("#더시드") \
or message.content.startswith("#유니온") \
or message.content.startswith("#업적"):
msg = message.content.split(" ")
outputs = information_main(msg)
if len(outputs) is 2:
await message.channel.send(file=discord.File(outputs[1], filename=msg[1] + '.png'))
await message.channel.send(embed=outputs[0])
if message.content.startswith("#골드") \
or message.content.startswith("#애플") \
or message.content.startswith("#로얄") \
or message.content.startswith("#원더") \
or message.content.startswith("#원기") \
or message.content.startswith("#루나") \
or message.content.startswith("#남자") \
or message.content.startswith("#여자") \
or message.content.startswith("#남성") \
or message.content.startswith("#여성"):
msg = message.content.split(" ")
display_name = message.author.display_name
output = gambling_main(msg, display_name)
await message.channel.send(embed=output)
if message.content.startswith('#이벤') \
or message.content.startswith("#캐시"):
msg = message.content.split(" ")
output = homepage_main(msg)
await message.channel.send(embed=output)
await bot.process_commands(message)
try:
import keys
key = keys.key
except:
key = ''
bot.run(key)