Giter VIP home page Giter VIP logo

chatbot's Introduction

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
}

chatbot's People

Contributors

zhugez avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.