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 discord
|
||||||
import random
|
import random
|
||||||
import datetime
|
import datetime
|
||||||
import shelve
|
|
||||||
import datetime
|
import datetime
|
||||||
import shelve
|
import shelve
|
||||||
import backports.zoneinfo as zoneinfo
|
import backports.zoneinfo as zoneinfo
|
||||||
from py.storage import config
|
from py.storage import config
|
||||||
|
from discord import app_commands
|
||||||
from discord.ext import tasks, commands
|
from discord.ext import tasks, commands
|
||||||
|
|
||||||
|
|
||||||
@ -22,17 +22,18 @@ intents = discord.Intents.all()
|
|||||||
bot = commands.Bot(intents=intents, command_prefix=".")
|
bot = commands.Bot(intents=intents, command_prefix=".")
|
||||||
|
|
||||||
|
|
||||||
# bot info
|
# on ready
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
print('We have logged in as {0.user}'.format(bot))
|
print('We have logged in as {0.user}'.format(bot))
|
||||||
if not dailyquote.is_running():
|
if not dailyquote.is_running():
|
||||||
dailyquote.start()
|
dailyquote.start()
|
||||||
|
print(bot.tree)
|
||||||
print("discord.py version")
|
print("discord.py version")
|
||||||
print(discord.__version__)
|
print(discord.__version__)
|
||||||
|
|
||||||
|
|
||||||
@bot.command()
|
@bot.hybrid_command(name="eee", with_app_command=True)
|
||||||
async def foo(ctx):
|
async def foo(ctx):
|
||||||
for guild in bot.guilds:
|
for guild in bot.guilds:
|
||||||
await ctx.send(guild.id)
|
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.
|
# 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"
|
server = "default"
|
||||||
def config(value,db="config",serverid=server,mode="r"):
|
def config(value,db="config",serverid=server,mode="r"):
|
||||||
default = {
|
default = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user