搜索
用Python实现的Discord机器人搜索引擎
使用方法:
安装要求包括:
pip install -r requirements.txt
获取Discord僵尸程序凭据并放置在与main.py相同目录下的.env文件中
DISCORD_TOKEN = [copy paste token]
运行main.py
发展:
所有搜索模块均从./src导入
每个模块都可以使用discord.py发送消息。
例子:
每个模块都需要连接到日志系统这可以通过以下方式完成:
Log.appendToLog(ctx=discord.ext.commands.Context, command=str, args=str OR list)
必需的实例属性是:
bot=discord.ext.commands.Bot
ctx=discord.ext.commands.Context