-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbot.py
More file actions
33 lines (25 loc) · 677 Bytes
/
bot.py
File metadata and controls
33 lines (25 loc) · 677 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
33
import discord
from discord.ext import commands
import stripe
import os
import json
import requests
import click
import asyncio
import InquirerPy
import colorama
from util.load_extensions import load_extensions
with open("config.json", "r") as f:
config = json.load(f)
prefix = config["prefix"]
bot_token = config["bot_token"]
bot = commands.Bot(command_prefix=f"{prefix}", intents=discord.Intents.all())
async def main():
async with bot:
try:
await load_extensions(bot)
print("Bot Ready!")
await bot.start(bot_token)
except KeyboardInterrupt:
pass
asyncio.run(main()) # Runs main function above