-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbot.py
23 lines (18 loc) · 876 Bytes
/
bot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Start a venv before working!
# python -m env env
# .\env\Scripts\activate
import random
import utilities
import hikari # Discord API Wrapper
import lightbulb # Command Handler for Hikari
if __name__ == "__main__":
bot = lightbulb.BotApp(
token = utilities.TOKEN,
default_enabled_guilds = utilities.SERVERS,
intents = hikari.Intents.ALL_UNPRIVILEGED | hikari.Intents.GUILD_PRESENCES | hikari.Intents.GUILD_MESSAGE_REACTIONS | hikari.Intents.GUILD_MESSAGES,
prefix = utilities.PREFIX
) # Instantiate our bot
# Choose a random activity to display
random_activity = utilities.get_random_activity() # Get a random activity to display
bot.load_extensions_from('./extensions') # Load all extensions
bot.run(activity = hikari.Activity(name = random_activity[0], type = random_activity[1])) # Run the bot!