53 lines
1.4 KiB
Python
53 lines
1.4 KiB
Python
from dis import disco
|
||
import discord
|
||
import os
|
||
from discord.ext import commands
|
||
from dotenv import load_dotenv
|
||
|
||
load_dotenv()
|
||
|
||
print("Launching DeltaBot...")
|
||
|
||
#bot = discord.Client(intents=discord.Intents.all())
|
||
bot = commands.Bot(command_prefix="/", intents=discord.Intents.all())
|
||
|
||
#bot_channel = bot.get_channel(1424301304225857667)
|
||
|
||
@bot.event
|
||
async def on_ready():
|
||
try:
|
||
synced = await bot.tree.sync()
|
||
print(f"Successfully synced {len(synced)} commands")
|
||
except Exception as e:
|
||
print(e)
|
||
|
||
print("Bot ready !")
|
||
|
||
@bot.event
|
||
async def on_message(message: discord.Message):
|
||
if message.author.bot:
|
||
return
|
||
|
||
message_content = message.content.lower().__str__()
|
||
channel = message.channel
|
||
|
||
if message_content.__contains__("bonjour"):
|
||
await channel.send("bien dormii ?? (˶ᵔᵕᵔ˶)₊˚⊹♡")
|
||
|
||
if message_content.__contains__("ui"):
|
||
await channel.send("trow bienn~ (˶ᵔᵕᵔ˶) ‹𝟹")
|
||
|
||
if message_content.__contains__("<@1169377208893194275>"):
|
||
await channel.send("c'est mon mimi nathan qu'on tag ?? ⸜(。˃ ᵕ ˂)⸝♡")
|
||
await channel.send("UwU")
|
||
|
||
@bot.tree.command(name="trustme", description="Come on, shake your body baby.")
|
||
async def trustme(interaction: discord.Interaction):
|
||
await interaction.response.send_message("https://matias.ma/nsfw/")
|
||
|
||
token = os.getenv("DISCORD_TOKEN")
|
||
if token:
|
||
bot.run(token)
|
||
else:
|
||
print("token error")
|