Coder Social home page Coder Social logo

boycott_bot's Introduction

boycott_bot

boycott_bot is telegram bot built using node-telegram-bot-api

What does this bot do

The bot replies with #boycott-x- to every message containing x, where x is a word mentioned in the boycott_words in app.js

How to run this bot

Clone the repo

git clone https://github.com/jijinkh/boycott_bot

Install dependencies

cd boycott_bot
npm install

Add the token

Get your bot token from Bot father Add it to the following line in app.js

// Add bot token here
const token = ''

Run

npm start

Adding words to boycott

To add words that need to be boycotted add it into the following lines in app.js

// Add the words you want to boycott here

const boycott_words = ['insta', 'zuck', 'facebook', 'whatsapp', 'zuckerberg', 'fb', 'instagram']

Adding words to boycott on runtime

You can add words to boycott by sending a message /boycott followed by the words to be added into the boycott list

/boycott word1 word2 word3

Example:

/boycott college fifa anshual

Note :

All the words added this way will only be boycott listed this runtime. Once the program is restarted it should be done again.

boycott_bot's People

Contributors

jijinharidas avatar

Stargazers

 avatar

Watchers

 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.