TenPoisk commited on
Commit
d8789fb
·
1 Parent(s): 15b6059

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import discord
2
+ from discord.ext import commands
3
+
4
+ config = {
5
+ 'token': 'MTEzNTU5NzMwMTIxNDIyNDQ2NA.GEKXfh.Yua9UadqQeE8BYNI0aaqI0AmI3pC_GMeI7CiJ0',
6
+ 'prefix': '!',
7
+ }
8
+
9
+ bot = commands.Bot(command_prefix=config['prefix'])
10
+
11
+ @bot.event
12
+ async def on_message(ctx):
13
+ if ctx.author != bot.user:
14
+ await ctx.reply(ctx.content)
15
+
16
+ bot.run(config['token'])