zhugez / chatbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C3C

discord size code-version github-version commits code checking

A bot that can be customized using plugins. Currently supports Facebook Messenger (using facebook-chat-api) and Discord (using discord.js)

Install

Install Node.JS and Git if you don't have one. If you're using Windows, you need to open command prompt and type this command:

npm install -g windows-build-tools

After that, download latest releases. Extract it then go to the directory where it extracted, then type:

npm install

and you are ready to go.

Usage

npm start

If this is the first time you execute this command, it'll generate config.json file. Close that command and then configure config.json file.

After that, you can run that command again and bot will go live.

Plugins

  • SimSimi (/plugins/SimSimi.z3p) => Allow users to chat with SimSimi.
  • Economy (/plugins/Economy.z3p) => Create an economy.
  • Economy-Income (/plugin/Economy-Income.z3p) => Add a way to earn money. Extends Economy
  • Economy-Gambling (/plugins/Economy-Gambling.z3p) => Add some gambling games to bot. Extends Economy

Localize

This bot currently supporting 2 language: en_US (English) and vi_VN (Tiếng Việt). You can change languages in config.json.

Facebook test accounts

A Facebook test account is an account just like normal accounts, however it can't contract with normal accounts. This account can be used to test and config the bot before going live.

You can create one in here.

Example config

If you don't want the bot create a config.json file for you, then here is the content that bot will write into config.json file:

{
    "testmode": false,
    "baseprefix": "[Bot]",
    "botname": "C3CBot",
    "enablefb": false,
    "usefbappstate": true,
    "fbemail": "",
    "fbpassword": "",
    "fbuseragent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36",
    "fblistenwhitelist": false,
    "fblisten": [
        "0"
    ],
    "enablediscord": false,
    "discordtoken": "",
    "discordlistenwhitelist": false,
    "discordlisten": [
        "0"
    ],
    "admins": [
        "FB-0",
        "DC-0"
    ],
    "blacklistedUsers": [
        "FB-0",
        "DC-0"
    ],
    "allowAdminUseRestartCommand": false,
    "allowUserUsePluginsCommand": false,
    "allowUserUseReloadCommand": false,
    "language": "en_US",
    "enableThanosTimeGems": true,
    "allowEveryoneTagEvenBlacklisted": true
}

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 87.7%Language:TypeScript 12.3%