This repository was archived by the owner on Nov 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
68 lines (50 loc) · 2.37 KB
/
main.py
File metadata and controls
68 lines (50 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import discord
from discord.ext import commands
from dotenv import load_dotenv
import os
import asyncio
load_dotenv()
TOKEN = os.getenv("TOKEN")
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix='+', intents=intents)
@bot.event
async def on_ready():
print(f"Pronto! {bot.user}")
await bot.tree.sync()
@bot.tree.command(name="ping", description="Veja o ping do bot")
async def ping(interaction: discord.Interaction):
latency = round(bot.latency * 1000)
await interaction.response.send_message(f"AU AU!! \nLatência: {latency}ms")
@bot.tree.command(name="morder", description="Dá uma mordida carinhosa em alguém")
async def morder(interaction: discord.Interaction, user: discord.Member):
await interaction.response.send_message(
f"🐾 A Lua correu e deu uma mordidinha carinhosa em {user.mention}!!"
)
@bot.tree.command(name="chinelos", description="Lua mostra um chinelo destruído")
async def chinelos(interaction: discord.Interaction):
embed = discord.Embed(title="O Chinelo virou pó!")
embed.set_image(url="https://i.postimg.cc/fL8khMgX/Opera-Instant-neo-2025-09-16-194923-www-canva-com.png")
await interaction.response.send_message(embed=embed)
@bot.tree.command(name="carinho", description="Faça carinho na Lua!!")
async def carinho(interaction: discord.Interaction):
await interaction.response.send_message(
"💖 A Lua aceitou seu carinho!! (mas cuidado, ela ainda pode te morder hehe:P)"
)
@bot.tree.command(name="latir", description="Lua manda latidos para você")
async def latir(interaction: discord.Interaction):
await interaction.response.send_message("AU AU AUUUUUUUUUUUUUUUUUUUUUUUUUUU!")
@bot.event
async def on_member_join(member):
try:
await member.send(
f"AU AU! {member.name} ... AU AU! Quem é você? Espero que não tenha trazido chinelos... :P"
)
except discord.Forbidden:
print(f"Não consegui latir para {member.name} 🥹")
@bot.tree.command(name="brinquedo", description="Lua mostra um brinquedo para você :3")
async def brinquedo(interaction: discord.Interaction):
embed = discord.Embed(title="Aqui ó, um brinquedo pra você!")
embed.set_image(url="https://imgur.com/a/cNUnoSo")
await interaction.response.send_message(embed=embed)
bot.run(TOKEN)