pingy pongy
parent
e604ebc487
commit
6a42fab8d6
6
bot.py
6
bot.py
|
@ -38,7 +38,7 @@ banning_users = []
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
await bot.change_presence(activity=discord.Game(name='>>help'))
|
await bot.change_presence(activity=discord.Game(name='{} servers | >>help'.format(len(bot.guilds))))
|
||||||
print("Bot started.")
|
print("Bot started.")
|
||||||
print("--------------------------")
|
print("--------------------------")
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ async def help(ctx):
|
||||||
|
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name=">>ping",
|
name=">>ping",
|
||||||
value="Get bot latency. Still being implemented."
|
value="Get bot latency."
|
||||||
)
|
)
|
||||||
|
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
@ -103,7 +103,7 @@ async def addEmote(ctx, emote_name: str):
|
||||||
|
|
||||||
@bot.command(aliases=['latency'])
|
@bot.command(aliases=['latency'])
|
||||||
async def ping(ctx):
|
async def ping(ctx):
|
||||||
await ctx.send("Currently under construction")
|
await ctx.send("`Bot latency: {}s`".format(round(bot.latency, 2)))
|
||||||
|
|
||||||
@bot.command()
|
@bot.command()
|
||||||
async def mute(ctx, target_user:discord.User):
|
async def mute(ctx, target_user:discord.User):
|
||||||
|
|
Loading…
Reference in New Issue