-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (23 loc) · 718 Bytes
/
main.py
File metadata and controls
32 lines (23 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import logging
from os import environ
from discord import AllowedMentions, Intents
from nagatoro.common import Bot, Config
def main():
intents = Intents.default()
intents.members = True
config = (
Config.default()
.intents(intents)
.allowed_mentions(AllowedMentions.none())
.extension_package("nagatoro.extensions")
.extension(".management")
.extension(".info")
.extension(".utility")
)
bot = Bot(config)
# Token is stored outside of the config object for security reasons
token = environ.get("BOT_TOKEN")
bot.run(token, log_handler=None)
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
main()