소스 검색

bot core innit

tags/v1.0.0
roxie 6 년 전
부모
커밋
ebd300c1fb
3개의 변경된 파일21개의 추가작업 그리고 3개의 파일을 삭제
  1. +0
    -3
      cogs/main.py
  2. +4
    -0
      config/preferences.ini
  3. +17
    -0
      main.py

+ 0
- 3
cogs/main.py 파일 보기

@@ -1,3 +0,0 @@
from discord.ext import commands

bot = commands.Bot(command_prefix=".")

+ 4
- 0
config/preferences.ini 파일 보기

@@ -0,0 +1,4 @@
[Roxbot]
OwnerID=
Token=
Command_Prefix=

+ 17
- 0
main.py 파일 보기

@@ -0,0 +1,17 @@
#!/usr/env python

import configparser
from discord.ext import commands

settings = configparser.ConfigParser()
settings.read("config/preferences.ini")
command_prefix = settings["Roxbot"]["Command_Prefix"]
token = settings["Roxbot"]["Token"]

bot = commands.Bot(command_prefix=command_prefix)

@bot.event
async def on_ready():
print("Client Logged In")

bot.run()

Loading…
취소
저장