Skip to content

Commit 067cd38

Browse files
authored
some things
1 parent cbdd70b commit 067cd38

3 files changed

Lines changed: 20 additions & 40 deletions

File tree

command/infos/galleryofmoon.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import discord
2+
from discord.ext import commands
3+
4+
intents = discord.Intents.default()
5+
intents.members = True
6+
7+
bot = commands.Bot(command_prefix='+', intents=intents)
8+
9+
@bot.tree.command(name="galleryofmoon_about", description="[Info] Mostra as informações sobre a GalleryOfMoon")
10+
async def gofmoon(interaction: discord.Interaction):
11+
embed = discord.Embed(
12+
title="GalleryOfMoon - Informações",
13+
colour=discord.Colour.blurple()
14+
)
15+
16+
embed.set_footer(text="A GalleryOfMoon(GofMoon) é a Galeria de fanarts da LuaBot, inspirada na GalleryOfDreams da Loritta.")
17+
18+
await interaction.response.send_message(embed=embed)
File renamed without changes.

main.py

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
from utils.isGestor import verificar_gestor
1313
from command.dev import shutdown, restart, performance
1414
from command.roleplay import abraco, invocar, beijar
15-
from command.infos import userinfo, botinfo, perfil
15+
from command.infos import userinfo, botinfo, perfil, galleryofmoon
1616
from shih.shih_manager import DiscordTokenManager, MongoDBTokenManager
1717
from caramelo.blacklist.blacklist import blacklist_add, save_blacklist, blacklist_data, blacklist_remove
1818
from caramelo.caramelo import lock, unlock
1919

2020

21-
TOSCO_MODE = False
2221

2322
dtm = DiscordTokenManager()
2423
mdbtm = MongoDBTokenManager()
@@ -69,6 +68,7 @@ async def on_ready():
6968
bot.tree.add_command(userinfo.userinfo)
7069
bot.tree.add_command(botinfo.botinfo)
7170
bot.tree.add_command(perfil.perfil)
71+
bot.tree.add_command(galleryofmoon.gofmoon)
7272

7373
# Comandos do Caramelo Automod/Mod
7474
bot.tree.add_command(lock) # Comando de Trancar o Canal
@@ -195,44 +195,6 @@ async def skin(interaction: discord.Interaction, player: str):
195195

196196
await interaction.response.send_message(embed=embed)
197197

198-
@bot.tree.command(name="modo_tosco", description="Veja para que serve o Modo Tosco da LuaBot!")
199-
async def modo_tosco(interaction: discord.Interaction):
200-
embed = discord.Embed(
201-
title="💩 Modo Tosco",
202-
color=discord.Color.blue(),
203-
description="O Modo Tosco serve para deixar seu servidor muito divertido, por exemplo, eu vou reagir a mensagens aleatórias do seu servidor!"
204-
)
205-
206-
await interaction.response.send_message(embed=embed)
207-
208-
@bot.tree.command(name="ativar_modo_tosco", description="Ativa o Modo Tosco da LuaBot!")
209-
async def ativar_tosco_mode(interaction: discord.Interaction):
210-
global TOSCO_MODE
211-
TOSCO_MODE = True
212-
await interaction.response.send_message("**Modo Tosco Ativado!**")
213-
214-
@bot.tree.command(name="desativar_modo_tosco", description="Desativa o Modo Tosco!")
215-
async def desativar_tosco_mode(interaction: discord.Interaction):
216-
TOSCO_MODE = False
217-
await interaction.response.send_message(f"**Modo Tosco Desativado!**")
218-
219-
@bot.event
220-
async def on_message(message):
221-
if message.author == bot.user:
222-
return
223-
224-
225-
if TOSCO_MODE == True:
226-
227-
228-
229-
if random.randint(1, 100) <= 50:
230-
emoji_tosco = "🙌"
231-
232-
233-
await message.add_reaction(emoji_tosco)
234-
235-
await bot.process_commands(message)
236198

237199
@bot.tree.command(name="gerenciar_produtos", description="[Administração] Gerencie os Produtos da Lojinha da LuaBot!")
238200
async def gerenciar(interaction: discord.Interaction):

0 commit comments

Comments
 (0)