Compare commits

..
8 Commits
Author SHA1 Message Date
CF 9a387a6ebe gorkin it til i cum 2025-05-26 14:24:38 -07:00
CF 0c95903282 this should work 2025-05-26 14:01:31 -07:00
CF 8ccbfcc67c STOP IT 2025-05-26 13:56:06 -07:00
CF f1857631be we need no tests where were going 2025-05-26 13:53:49 -07:00
CF 1ebc211be9 file=file 2025-05-26 13:52:52 -07:00
CF abe3cd9fb4 fgfdsgsdf 2025-05-26 13:51:02 -07:00
CF 5877807846 zxcSDfdsafdsadfas 2025-05-26 13:46:32 -07:00
CF c0218f0ce9 retuyrn path 2025-05-26 13:43:34 -07:00
+14 -18
View File
@@ -30,8 +30,8 @@ def emojer():
def fuit_response(): def fuit_response():
vid = secrets.choice(os.listdir("./assets/vid/")) vid = secrets.choice(os.listdir("./assets/vid/"))
path = f"./assets/vid/{vid}" path = f"./assets/vid/{vid}"
with open(path, "rb") as ourfile: #with open(path, "rb") as ourfile:
return ourfile return path
async def doccy_response(): async def doccy_response():
doccy = jackblack() doccy = jackblack()
@@ -40,12 +40,6 @@ async def doccy_response():
return resp return resp
@bot.command(hidden=True)
@commands.is_owner()
async def testfruit(ctx):
fuit = fuit_response()
await ctx.send(fuit)
async def build_response(): async def build_response():
fuit = fuit_response() fuit = fuit_response()
@@ -60,12 +54,6 @@ async def build_response():
else: else:
resps = doccy resps = doccy
'''resps = [
doccy,
emoji_response,
]
'''
#return str(secrets.choice(resps)) #return str(secrets.choice(resps))
return resps return resps
@@ -84,8 +72,9 @@ async def on_message(message):
response = await build_response() response = await build_response()
if isinstance(response, io.IOBase): try:
await message.channel.send(file=discord.File(response, filename="fuit.mov")) await message.channel.send(file=discord.File(response))
except:
if response.startswith("<https://"): if response.startswith("<https://"):
pass pass
if response.isupper(): if response.isupper():
@@ -98,8 +87,15 @@ async def on_message(message):
await message.channel.send(f"{response}\n\n\n{footer}") await message.channel.send(f"{response}\n\n\n{footer}")
else: else:
await message.channel.send(f"{response}") await message.channel.send(f"{response}")
await bot.process_commands(message) await bot.process_commands(message)
bot.load_extension('jishaku') @bot.event
bot.run(TOKEN) async def on_ready():
await bot.load_extension('jishaku')
print(f"[*] I am {bot.user} (ID: {bot.user.id})")
game = discord.Game(name="https://traps.moe", activity=random.randint(0, 3))
await bot.change_presence(status=discord.Status.online, activity=game)
print("------")
bot.run(TOKEN)