Compare commits

..
19 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
CF c10fe069d3 dsafda 2025-05-26 13:41:38 -07:00
CF d47c75b557 gfdfsgfdsgfdgfds 2025-05-26 13:36:39 -07:00
CF 8c81b0f7f9 fdgfd 2025-05-26 13:35:56 -07:00
CF 938a950d09 filename was mmissing 2025-05-26 13:31:11 -07:00
CF f7d6364e35 yrsagfds 2025-05-26 13:24:26 -07:00
CF 3bf14022ab this way 2025-05-26 13:23:08 -07:00
CF eb34dbdd3a i forgot about this logic 2025-05-26 13:22:13 -07:00
CF 40b46382c7 fix caps. process commands 2025-05-26 13:17:13 -07:00
CF e546a0e1ce i didnt make it an fstring 2025-05-26 13:14:46 -07:00
CF 2ab7899c50 a sapce.a fucking space 2025-05-26 13:14:09 -07:00
CF 5a4be0e027 asdfsadfdsa 2025-05-26 13:13:16 -07:00
+31 -31
View File
@@ -1,6 +1,7 @@
import random
import os
import secrets
import io
import emoji
import discord
@@ -28,9 +29,9 @@ def emojer():
def fuit_response():
vid = secrets.choice(os.listdir("./assets/vid/"))
ourfile = discord.File(vid)
return ourfile
path = f"./assets/vid/{vid}"
#with open(path, "rb") as ourfile:
return path
async def doccy_response():
doccy = jackblack()
@@ -39,12 +40,6 @@ async def doccy_response():
return resp
@bot.command(hidden=True)
@commands.is_owner()
async def testfruit(ctx):
fuit = fuit_response()
await ctx.send(fuit)
async def build_response():
fuit = fuit_response()
@@ -59,12 +54,6 @@ async def build_response():
else:
resps = doccy
'''resps = [
doccy,
emoji_response,
]
'''
#return str(secrets.choice(resps))
return resps
@@ -80,22 +69,33 @@ async def on_message(message):
if bot.user.mentioned_in(message):
if random.randint(0, 10) == 5:
pass
response = await build_response()
if response.startswith("<https://"):
pass
if response.isupper():
pass
else:
response = response.capitalize()
if response.startswith("<"):
await message.channel.send(f"{response}")
elif response.startswith(":"):
await message.channel.send(f"{response}")
elif random.randint(1, 5) == 1:
await message.channel.send(f"{response}\n\n\n{footer}")
else:
await message.channel.send(f"{response}")
bot.load_extension('jishaku')
try:
await message.channel.send(file=discord.File(response))
except:
if response.startswith("<https://"):
pass
if response.isupper():
pass
if response.startswith("<"):
await message.channel.send(f"{response}")
elif response.startswith(":"):
await message.channel.send(f"{response}")
elif random.randint(1, 5) == 1:
await message.channel.send(f"{response}\n\n\n{footer}")
else:
await message.channel.send(f"{response}")
await bot.process_commands(message)
@bot.event
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)