Sharfy commited on
Commit
7bf4d89
·
1 Parent(s): b670ee5

Add discord_components into requirements.txt

Browse files
Files changed (2) hide show
  1. app.py +6 -0
  2. requirements.txt +2 -1
app.py CHANGED
@@ -2,6 +2,12 @@ import discord
2
  from discord.ext import commands
3
  from discord_components import DiscordComponents, Button, ButtonStyle, InteractionType
4
 
 
 
 
 
 
 
5
  @bot.event
6
  async def on_ready():
7
  print(f'We have logged in as {bot.user}')
 
2
  from discord.ext import commands
3
  from discord_components import DiscordComponents, Button, ButtonStyle, InteractionType
4
 
5
+ intents = discord.Intents.default()
6
+ intents.members = True
7
+
8
+ bot = commands.Bot(command_prefix="!", intents=intents)
9
+ DiscordComponents(bot)
10
+
11
  @bot.event
12
  async def on_ready():
13
  print(f'We have logged in as {bot.user}')
requirements.txt CHANGED
@@ -1 +1,2 @@
1
- discord
 
 
1
+ discord
2
+ discord_components