Added minor changes to gib activity
This commit is contained in:
parent
e438fd6d9b
commit
0515773f68
1 changed files with 2 additions and 2 deletions
4
bot.py
4
bot.py
|
@ -97,7 +97,7 @@ async def activity(ctx, atype, *, aname):
|
||||||
if atype not in atypes:
|
if atype not in atypes:
|
||||||
await ctx.send("invalid activity type. the valid types are "+' '.join(atypes.keys()))
|
await ctx.send("invalid activity type. the valid types are "+' '.join(atypes.keys()))
|
||||||
return
|
return
|
||||||
await bot.change_presence(activity=Activity(name=(aname + f" and foxing {str(getAllUsers())} users"), type=atypes[atype], url="https://twitch.tv/xginlang"))
|
await bot.change_presence(activity=Activity(name=(aname + f" ¦ {str(getAllUsers())} users"), type=atypes[atype], url="https://twitch.tv/xginlang"))
|
||||||
await ctx.send('Success!')
|
await ctx.send('Success!')
|
||||||
|
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ async def gay(ctx, member: discord.Member=None):
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
await asyncio.sleep(1) # someone on stackoverflow said discord does not like if you are speedy
|
await asyncio.sleep(1) # someone on stackoverflow said discord does not like if you are speedy
|
||||||
await bot.change_presence(activity=Streaming(name="Testing - bot may go offline at any point.", url="https://twitch.tv/xginlang"))
|
await bot.change_presence(activity=Streaming(name=f"Dev Mode ¦ {str(getAllUsers())} users", url="https://twitch.tv/xginlang"))
|
||||||
|
|
||||||
with open('token.json', 'r') as file:
|
with open('token.json', 'r') as file:
|
||||||
# this breaks if you are on windows
|
# this breaks if you are on windows
|
||||||
|
|
Loading…
Reference in a new issue