Skip to content

A bot that remembers music you post to a chatroom and reposts daily/weekly digests

License

Notifications You must be signed in to change notification settings

robinmaypanpan/musician_chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Musician Chatbot

A Telegram bot that remembers music you post to a chatroom and reposts daily/weekly digests

Technologies in use

  • Node.js server
  • MongoDB database
  • Telegram Bot API
  • Heroku

Getting Started

You want to help out with this app? OMG, that's so cool! Here's what you need to know.

Setup

There's a few pieces parts you'll need to get setup to make things run.

MongoDB

  1. Install a mongodb server from MongoDB
  2. Create a folder data underneath the directory you cloned this repository to
  3. You can start the database using
    npm run db
    or any other method you like

Telegram Bot

  1. Use the instructions on Telegram to create a new bot to test with.
  2. Turn off privacy mode on your test bot so it can see messages in groups
  3. If you add your test bot to a supergroup, be sure to set it to an admin so it can see messages in that group.

Environment variables

Create a .env file with the following values.

NODE_ENV=development
BOT_KEY=YOUR_BOT_KEY_HERE
MONGODB_URI=mongodb://localhost:27017/musicianbotdb
MONGODB_DB=musicianbotdb

Replace the values in this sample file with the values that are appropriate for your setup.

Running the bot

Once your bot is setup and your database is running, just type

npm run dev
to connect to your bot and get moving! This will automatically pull in environment variables you put in your .env file.

Managing Git

It is recommended that you do all of your development in the dev branch, and send pull requests to both master and dev master when you have something ready to push.

It is important to note that ANYTHING posted to master will be deployed to heroku momentarilly, so only fully tested adn verified code should be there.

About

A bot that remembers music you post to a chatroom and reposts daily/weekly digests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published