Closed TheOnlyWayUp closed 2 years ago
Fixes #239.
import discord from discord.ext import commands
bot = commands.Bot(command_prefix="test!", self_bot=False) bot.owner_ids = [876055467678375998]
@bot.event async def on_ready(): print("logged in")
@bot.command() @commands.is_owner() async def ping(ctx): await ctx.reply(f"Pong, {round(bot.latency, 1)}ms.", mention_author=False)
bot.run()
- [x] This PR fixes an issue (please put issue # in summary).
This was fixed upstream. I'm already working on updating to upstream locally.
Summary
Fixes #239.
General Info
bot = commands.Bot(command_prefix="test!", self_bot=False) bot.owner_ids = [876055467678375998]
@bot.event async def on_ready(): print("logged in")
@bot.command() @commands.is_owner() async def ping(ctx): await ctx.reply(f"Pong, {round(bot.latency, 1)}ms.", mention_author=False)
bot.run()