Compare commits
6 commits
0515773f68
...
8ce21fad0e
Author | SHA1 | Date | |
---|---|---|---|
8ce21fad0e | |||
a3ad473a61 | |||
cd9b99fe1d | |||
a096353bf7 | |||
37b48ad59a | |||
0bb02f967d |
2 changed files with 17 additions and 2 deletions
15
bot.py
Executable file → Normal file
15
bot.py
Executable file → Normal file
|
@ -22,9 +22,9 @@ def getAllUsers():
|
||||||
|
|
||||||
async def is_ginlang(ctx):
|
async def is_ginlang(ctx):
|
||||||
"""
|
"""
|
||||||
are you ginlang or the other dude?
|
are you ginlang or the other dudes?
|
||||||
"""
|
"""
|
||||||
if ctx.author.id in [287885666941927424, 894034804503351366]:
|
if ctx.author.id in [287885666941927424, 894034804503351366, 296736767158255616, 831598877320413244]:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
logchannel = await bot.fetch_channel(910622485916037150)
|
logchannel = await bot.fetch_channel(910622485916037150)
|
||||||
|
@ -76,6 +76,11 @@ async def koala(ctx):
|
||||||
await ctx.send(json["fact"])
|
await ctx.send(json["fact"])
|
||||||
await ctx.send(json["image"])
|
await ctx.send(json["image"])
|
||||||
|
|
||||||
|
@bot.command(hidden=True)
|
||||||
|
@commands.check(is_ginlang)
|
||||||
|
async def restart(ctx):
|
||||||
|
await ctx.send("shutting down. beep boop.")
|
||||||
|
await exit()
|
||||||
|
|
||||||
@bot.command(brief="bin eaters")
|
@bot.command(brief="bin eaters")
|
||||||
async def raccoon(ctx):
|
async def raccoon(ctx):
|
||||||
|
@ -88,6 +93,12 @@ async def raccoon(ctx):
|
||||||
await ctx.send(json["fact"])
|
await ctx.send(json["fact"])
|
||||||
await ctx.send(json["image"])
|
await ctx.send(json["image"])
|
||||||
|
|
||||||
|
@bot.command(hidden=True)
|
||||||
|
@commands.check(is_ginlang)
|
||||||
|
async def restart(ctx):
|
||||||
|
await ctx.send("shutting down, beep boop.")
|
||||||
|
exit()
|
||||||
|
|
||||||
|
|
||||||
@bot.command(hidden=True)
|
@bot.command(hidden=True)
|
||||||
@commands.check(is_ginlang)
|
@commands.check(is_ginlang)
|
||||||
|
|
4
start
Executable file
4
start
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
while [ true ]
|
||||||
|
do
|
||||||
|
python3 bot.py
|
||||||
|
done
|
Loading…
Reference in a new issue