【文件属性】:
文件名称:lonely-bot:用于汇总和呈现 Dota 2 统计数据的 Discord 机器人
文件大小:70KB
文件格式:ZIP
更新时间:2021-08-04 10:08:43
mongodb node-js JavaScript
Discord Lonely Bot
添加到您的服务器的链接。
目录
现有能力
可以计算dota中stat五边形的面积
可以从 Opendota API 获取有关玩家的数据
使用数据库保存discord ID和steam32 ID
汇总胜率以找到理想的计数器/协同作用
潮湿的模因
辣条算法
示例用法
命令名称
例子
help
steamid
profile
counter
设置
首先,设置以下环境变量
环境变量
价值
BOT_TOKEN
Discord 机器人令牌
BOT_URI
mongodb连接uri
确保你已经安装了 node 和 npm,然后运行
# Install dependencies
npm install
# Run the bot
node index.js
额外的信息
这个机器人被命名为孤独的机器人,以孤独的德鲁伊一个拥有酷熊的 Dota
【文件预览】:
lonely-bot-master
----.eslintrc.json(250B)
----.gitignore(30B)
----.env.example(35B)
----package.json(990B)
----package-lock.json(182KB)
----assets()
--------heroNames.js(5KB)
--------gameModes.js(500B)
--------lobbyTypes.js(231B)
----events()
--------ready.js(318B)
--------guildDelete.js(232B)
--------message.js(3KB)
----LICENSE(1KB)
----index.js(2KB)
----README.md(2KB)
----database()
--------guild.js(208B)
--------user.js(210B)
----Procfile(57B)
----commands()
--------setprefix.js(2KB)
--------counter.js(6KB)
--------profile.js(8KB)
--------pentagon.js(2KB)
--------help.js(3KB)
--------steamid.js(2KB)
--------ping.js(376B)
--------meme.js(1KB)
----config.json(179B)