File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ import discord
2+ from discord import ui
3+ from discord .ext import commands
4+
5+ intents = discord .Intents .default ()
6+ intents .members = True
7+
8+ bot = commands .Bot (command_prefix = '+' , intents = intents )
9+
10+ class ButtonView (discord .ui .View ):
11+ def __init__ (self ):
12+ super ().__init__ ()
13+
14+ self .add_item (discord .ui .Button (
15+ label = "Website" ,
16+ url = "https://theluabot.squareweb.app/"
17+ ))
18+
19+ class ButtonView (discord .ui .View ):
20+ def __init__ (self ):
21+ super ().__init__ ()
22+
23+ self .add_item (discord .ui .Button (
24+ label = "Website" ,
25+ url = "https://theluabot.squareweb.app/"
26+ ))
27+
28+ @bot .tree .command (name = "botinfo" , description = "[Info] Um pouquinho da História da LuaBot!" )
29+ async def botinfo (interaction : discord .Interaction ):
30+
31+ embed = discord .Embed (
32+ title = "Au, Au! Eu sou a LuaBot!" ,
33+ description = "Olá, eu me chamo LuaBot (mas meu nome é Lua!)!\n "
34+ "**Fui desenvolvida para entreter os membros do seu servidor!** <:lua_emoji_reading:ID>"
35+ )
36+
37+ embed .add_field (
38+ name = "📅 História" ,
39+ value = "Fui criada em **16 de Setembro de 2025**,\n "
40+ "mas meu aniversário é em **12 de Agosto!**\n "
41+ "E desde então transformei o mundo em um lugar melhor!" ,
42+ inline = False
43+ )
44+
45+ embed .set_footer (text = "PerfectTea © 2026" )
46+
47+
48+ embed .set_image (url = "https://imgur.com/oiTh7tz" )
49+
50+ view = ButtonView ()
51+
52+ await interaction .response .send_message (embed = embed , view = view )
You can’t perform that action at this time.
0 commit comments