2020-10-13 21:02:40 +02:00
|
|
|
import discord
|
|
|
|
from dotenv import load_dotenv
|
2020-11-03 16:06:08 +01:00
|
|
|
from functions.prefixes import get_prefix
|
2021-09-05 16:09:10 +02:00
|
|
|
from settings import STATUS_MESSAGE, TOKEN
|
2021-06-19 20:11:55 +02:00
|
|
|
from startup.didier import Didier
|
2021-06-14 23:33:53 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
load_dotenv(verbose=True)
|
|
|
|
|
2021-09-05 16:09:10 +02:00
|
|
|
# Activities
|
|
|
|
activity = discord.Activity(type=discord.ActivityType.playing, name=STATUS_MESSAGE)
|
|
|
|
status = discord.Status.online
|
|
|
|
|
2021-06-14 23:33:53 +02:00
|
|
|
# Configure intents (1.5.0)
|
|
|
|
intents = discord.Intents.default()
|
|
|
|
intents.members = True
|
|
|
|
|
2021-09-05 16:09:10 +02:00
|
|
|
client = Didier(command_prefix=get_prefix, case_insensitive=True, intents=intents, activity=activity, status=status)
|
2021-06-19 20:11:55 +02:00
|
|
|
client.run(TOKEN)
|