eeee
This commit is contained in:
parent
50ff47a034
commit
d4648c656c
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 404 KiB After Width: | Height: | Size: 404 KiB |
1
py/VERSION
Normal file
1
py/VERSION
Normal file
@ -0,0 +1 @@
|
||||
1.2
|
||||
1
py/init.py
Normal file
1
py/init.py
Normal file
@ -0,0 +1 @@
|
||||
print("hi")
|
||||
@ -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)
|
||||
@ -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 = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user