Skip to content
/ MADBot Public
forked from LegitDongo/MADBot

Discord user submitted raids to work with Map-A-Droid

Notifications You must be signed in to change notification settings

bbdoc/MADBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map-A-Droid User Submissions

If you need user submissions through Discord and/or Telegram and want it to work with Map-A-Droid, use this!

How to use

  1. Install dependencies -- npm install
  2. Copy config.ini.example to config.ini
  3. Fill in the config settings appropriately
    • discordChannel - the specific channel id that will allow for user submissions
      • Can also use all for all channels to be valid
    • telegramChat - the specific chat id that will allow for user submissions
      • Can also use all for all chats that the bot is in to register
    • discordtoken - the token given to you by discord when you set your bot up
    • telegramtoken - the token given to you by the BotFather when you set your bot up
      • See below for further instruction
    • screenshotsLocation - the path on your machine to the screenshots folder
    • confirmationMessage - send a message back to the channel when the bot has finished downloading the image and saving it in the screenshots folder
      • true or false
  4. Run the bot! - node start.js
    • It is highly suggested using a process manager for this such as pm2

Telegram Broad Setup Guide

  1. Talk to the BotFather in the web client
    • Begin the conversation with /start
    • Proceed with /newbot
    • It will ask you a few questions like what you want to name it and what username it should have and then give you a token - copy that into telegramtoken in your config
  2. Still talking to the BotFather, use /setprivacy and set it to Disable -- This has be done before step 3, otherwise you have to kick and re-add your bot
  3. Add your bot to your group or channel - mobile app is best for doing this - example
    • For channels you have to add the bot as an administrator
  4. Determine if you want to allow all places that the bot is included at to submit raid images or only one
    • This is the telegramChat config option mentioned earlier
    • To get a chat id, follow this guide

Docker Usage

docker build -t madbot .              # Build the docker Image
docker run -d madbot                  # Launch MADBot (Daemon Mode)

MADBot requires an access to the screenshot directory of Map-a-Droid

This can be done easily using -v option to map a local DIR in both MAD and MADBot

About

Discord user submitted raids to work with Map-A-Droid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.2%
  • Dockerfile 9.8%