This commit is contained in:
ionburger 2022-10-25 17:14:44 -06:00
parent 50ff47a034
commit d4648c656c
6 changed files with 7 additions and 3 deletions

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 404 KiB

After

Width:  |  Height:  |  Size: 404 KiB

1
py/VERSION Normal file
View File

@ -0,0 +1 @@
1.2

1
py/init.py Normal file
View File

@ -0,0 +1 @@
print("hi")

View File

@ -6,11 +6,11 @@
import discord
import random
import datetime
import shelve
import datetime
import shelve
import backports.zoneinfo as zoneinfo
from py.storage import config
from discord import app_commands
from discord.ext import tasks, commands
@ -22,17 +22,18 @@ intents = discord.Intents.all()
bot = commands.Bot(intents=intents, command_prefix=".")
# bot info
# on ready
@bot.event
async def on_ready():
print('We have logged in as {0.user}'.format(bot))
if not dailyquote.is_running():
dailyquote.start()
print(bot.tree)
print("discord.py version")
print(discord.__version__)
@bot.command()
@bot.hybrid_command(name="eee", with_app_command=True)
async def foo(ctx):
for guild in bot.guilds:
await ctx.send(guild.id)

View File

@ -3,6 +3,7 @@
#
# This source code is licensed under the GPLv3 license. A copy of this license can be found in the LICENSE file in the root directory of this source tree.
import shelve
server = "default"
def config(value,db="config",serverid=server,mode="r"):
default = {