tobby48 2 years ago
parent
commit
47c3580fa1

+ 1
- 1
src/main/python/kr/co/swh/lecture/opensource/project/discord/callback.py View File

73
             }},
73
             }},
74
         )
74
         )
75
 
75
 
76
-bot.run('NjYzMjgzODYxMTUyNTk1OTkz.XhGROw.Ps3JJIKlEXoE1eah_5OKHwViThY')
76
+bot.run('NjYzMjgzODYxMTUyNTk1OTkz.G8WcYA.29kV0WMmztaOU-cGgY6NFt2R_7Hb2f2XE1Jfk4')

+ 1
- 1
src/main/python/kr/co/swh/lecture/opensource/project/discord/music/musicbot.py View File

495
 async def on_ready():
495
 async def on_ready():
496
     print('Logged in as:\n{0.user.name}\n{0.user.id}'.format(bot))
496
     print('Logged in as:\n{0.user.name}\n{0.user.id}'.format(bot))
497
 
497
 
498
-bot.run('NjYzMjgzODYxMTUyNTk1OTkz.XhGROw.Ps3JJIKlEXoE1eah_5OKHwViThY')
498
+bot.run('NjYzMjgzODYxMTUyNTk1OTkz.G8WcYA.29kV0WMmztaOU-cGgY6NFt2R_7Hb2f2XE1Jfk4')

+ 15
- 0
src/main/python/kr/co/swh/lecture/opensource/project/discord/sample.py View File

1
+import requests
2
+
3
+token = "OTk1NTAwMDg3OTk0MjQxMDY3.GxSRdZ.7t7BZFAEwNOwhMl0SPxQLUAbTPcVReGPJrGjxo"
4
+message = "Hello World!"
5
+
6
+headers = {
7
+    'Authorization': "Bot " + token
8
+}
9
+
10
+json_data = {
11
+    'content': message
12
+}
13
+
14
+r = requests.post(f"https://discord.com/api/v10/channels/995500087994241067/messages", headers=headers, json=json_data)
15
+print(r)

+ 1
- 1
src/main/python/kr/co/swh/lecture/opensource/project/discord/vote-language.py View File

134
             }},
134
             }},
135
         )
135
         )
136
 
136
 
137
-bot.run('NjYzMjgzODYxMTUyNTk1OTkz.XhGROw.Ps3JJIKlEXoE1eah_5OKHwViThY')
137
+bot.run('NjYzMjgzODYxMTUyNTk1OTkz.G8WcYA.29kV0WMmztaOU-cGgY6NFt2R_7Hb2f2XE1Jfk4')