bot-project混合BOT在Node.js与PHP上的应用

假BOT 需要 PHP 5.4及以上Node 0.10及以上、以及 MySQL或MariaDB。请遵循以下步骤进行配置:

  1. 进入项目目录: bash $ cd bot-project
  2. 安装依赖: bash $ npm install
  3. 导入数据库方案: bash $ mysql -u ***** -p ***** nise_bot < scheme>
  4. 启动评论抓取: bash $ php nise_bot/main.php botname upstream
  5. 进行数据迁移: bash $ php nise_bot/main.php botname migration
  6. 配置数据库连接信息,查看 JSON 说明并匹配文件名与 shell 参数。
  7. 确保日志文件具有写权限。

定时任务设置:

- 每20分钟:20m-cron

- 每小时:60m-cron

- 每天一次:1d-cron

使用 async 进行异步操作。

zip
bot-project-master.zip 预估大小:27个文件
folder
bot-project-master 文件夹
file
.gitignore 43B
file
package.json 199B
folder
scheme 文件夹
file
nise_bot.sql 3KB
folder
nise_bot 文件夹
file
main.js 656B
file
main.php 2KB
folder
inc 文件夹
file
mybot2.json 509B
file
mybot1.json 1KB
file
streamer.js 5KB
file
model.php 2KB
file
nise_bot.php 29KB
file
README.md 1KB
folder
config 文件夹
file
db.production.php 194B
file
db.php 181B
file
db.json 251B
folder
lib 文件夹
file
yahooma.php 6KB
file
twitter.php 3KB
folder
twitteroauth 文件夹
file
twitteroauth.php 8KB
file
oauth.php 28KB
folder
paris 文件夹
file
idiorm.php 90KB
file
paris.php 26KB
file
f.php 8KB
folder
shell 文件夹
file
define.sh 127B
file
60m.sh 190B
file
init.sh 146B
file
1d.sh 198B
file
async_stream.sh 257B
file
20m.sh 188B
zip 文件大小:55.94KB