Skip to content

6697/6697-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coffea-starter

coffea starter kit / boilerplate to quickly develop a chat bot

Starting a new project

git clone https://github.com/coffea-bots/coffea-starter PROJECT_NAME

Setup

Firstly, you need to install the dependencies:

npm install

While this is running, you can create a config.json, which will be passed to coffea's connect function:

[
  {
    "protocol": "telegram",
    "token": "INSERT_TELEGRAM_TOKEN_HERE"
  },
  {
    "protocol": "slack",
    "token": "INSERT_TELEGRAM_TOKEN_HERE"
  }
]

Important: Don't forget to install the protocols via npm install coffea-PROTOCOLNAME, e.g. npm install coffea-telegram coffea-slack (in this case)

Feel free to add as few or as many networks/protocols as you'd like. Currently, only slack, telegram and irc are supported.

Lastly, you should take a look at src/index.js. Feel free to adjust the code to your liking. As your bot grows, make sure to split it up into separate files.

Running

Now that your bot is set up, it's time to run it:

npm start

During development, you can also use:

npm run start:dev

To enable debug messages and run the code with on-the-fly compilation (via babel-node).

Or you can use:

npm run watch

To automatically restart the bot when the code changes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published