diff --git a/images/a.jpg b/html/images/a.jpg
similarity index 100%
rename from images/a.jpg
rename to html/images/a.jpg
diff --git a/images/coffee.jpg b/html/images/coffee.jpg
similarity index 100%
rename from images/coffee.jpg
rename to html/images/coffee.jpg
diff --git a/py/VERSION b/py/VERSION
new file mode 100644
index 0000000..5625e59
--- /dev/null
+++ b/py/VERSION
@@ -0,0 +1 @@
+1.2
diff --git a/py/init.py b/py/init.py
new file mode 100644
index 0000000..b80e322
--- /dev/null
+++ b/py/init.py
@@ -0,0 +1 @@
+print("hi")
diff --git a/main.py b/py/main.py
similarity index 96%
rename from main.py
rename to py/main.py
index d3c7326..67f8629 100644
--- a/main.py
+++ b/py/main.py
@@ -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)
diff --git a/py/storage.py b/py/storage.py
index ab24c0c..7414cab 100644
--- a/py/storage.py
+++ b/py/storage.py
@@ -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 = {