Testing
This commit is contained in:
parent
66b46e54f4
commit
b6eeea72a6
1 changed files with 8 additions and 1 deletions
|
@ -6,6 +6,13 @@ import discord
|
||||||
import asyncio
|
import asyncio
|
||||||
import typing
|
import typing
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
import logging
|
||||||
|
|
||||||
|
logger = logging.getLogger('discord')
|
||||||
|
logger.setLevel(logging.DEBUG)
|
||||||
|
handler = logging.FileHandler(filename='discord.log', encoding='utf-8', mode='w')
|
||||||
|
handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(message)s'))
|
||||||
|
logger.addHandler(handler)
|
||||||
|
|
||||||
description = '''Testing this bot stuff :)'''
|
description = '''Testing this bot stuff :)'''
|
||||||
|
|
||||||
|
@ -48,7 +55,7 @@ async def sync(ctx: commands.Context, guilds: commands.Greedy[discord.Object], s
|
||||||
fmt = await ctx.bot.tree.sync()
|
fmt = await ctx.bot.tree.sync()
|
||||||
|
|
||||||
await ctx.send(
|
await ctx.send(
|
||||||
f"Synced {len(fmt)} commands {'globally' if spec is None else 'to the current guild.'}"
|
f"Synced {len(fmt)} commands {'globally' if spec is None else 'to the current guild. :)'}"
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue