-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.py
More file actions
27 lines (21 loc) · 736 Bytes
/
Copy pathbot.py
File metadata and controls
27 lines (21 loc) · 736 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
from discord.ext import commands
from discord_slash import SlashCommand
from lib.system import System
from os import environ
import discord
import json
import logging
class Zect(commands.Bot):
def __init__(self):
super().__init__(
command_prefix=commands.when_mentioned_or(environ.get('PREFIX', './')),
help_command=None,
)
self.logging = logging
# self.logging.basicConfig(level=logging.DEBUG)
self.system = System()
self.slash = SlashCommand(self, sync_commands=True)
async def on_ready(self):
status = discord.Game("d.py Sample")
# status = discord.Game("メンテナンス中")
await self.change_presence(activity=status)