Skip to content

Discobanan/RaidPlannerBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RainPlannerBot

This bot was inspired by DeliBot, but because of a lot of issues with that bot, I decided to make my own.

The bots purpose is to simplify raid planning in Pokemon Go, by allowing the users of a discord community to create plans, which others can sign up for.

The bot is written in C# using .NET Core, so in theory it can run on other platforms than Windows, but it hasn't been tested yet.

Disclaimer

This is the first project I've put up on github, and pretty much the first open source project I am a member of. It's also the first time using .NET Core, and the first time using the Discord.Net, and lastly, it's the first time I've come into contact with async/await. The project is also quite messy, since it's made in a rush. Because of all this, I'm not surprised if I have done something totaly wrong, and you should not be surprised if things don't go as smootly as you would like :)

Setup

Creating a discord application

Inviting the newly created bot to your server

Configuring discord emojis

The bot requires 3 emojis to work properly, and if you don't already have them, you need to add them manually.

  • In discord, click Server settings > Emoji
  • Press Upload Emoji, and select one of the images in the Emoji-folder of this project
  • Do the same thing with the other two

Configuring RainPlannerBot

Running RainPlannerBot

  • Download and install Visual studio Community 2017
  • Start Visual Studio, and open RaidPlannerBot.sln
  • Press the green play-button
  • If the AppConfig.json isn't setup properly, it will tell you how to do so

If you want to compile your own binary

  • Open the Build-menu
  • Select Publish RaidPlannerBot
  • Create a new profile, selecting the output-directory you would like
  • On Target Location > Settings..., make sure Target Runtime is set to win10-x64
  • Press Publish
  • The output-directory you selected now contains an exe-file, and everything else needed

Using RainPlannerBot

The following command are available:

  • !raid pokemon time location for creating raid-plans. !r is the same thing as !raid.
  • !exraid pokemon time day location for creating ex-raid-plans. !xr is the same thing as !exraid.
  • !edit what id value for editing the time, location or boss of a raid.

Creating a raid plan

Type !raid pokemon time location in a channel where the bot is allowed, for example !raid latias 15:00 the gym at central station. The plan will automatically be deleted 2 hours after creation (or the number of minutes set in AppConfig.json)

Creating an EX-raid plan

Type !exraid pokemon time day location in a channel where the bot is allowed, for example !raid mewtwo 15:00 23/4 the gym at central station. The plan will automatically be deleted 10 days after creation (or the number of days set in AppConfig.json)

Attending a raid

If you are going to attend the raid, press the reaction corresponding to your faction. If you bring extra devices, also press the number-reaction that matches the number of extra devices you are bringing.

Change plan

The following properties of an existing plan can be changed:

  • time
  • boss
  • location

To edit an existing plan, type !edit what id value, where what is one of the above properties, id is the id that the bot have assigned to the plan, and what is the new value to use, for example !edit time 7624 16:00 or !edit boss 7624 tyranitar

Delete raid plan

Only the creator of the plan can delete it, and it is done by pressing the red-cross-reaction. Plans will however be automatically deleted depending on what type it is and the values set in AppConfig.json. By default, regular raid-plans are deleted after 2 hours, and EX-raids after 10 days.

Support

I highly recommend that you build your own executable using the code in this repository. If you are not able to, you can use this build, but it is not guaranteed to be 100% up-to-date with the last commit.

For other questions, tips or comments, join the discord server at https://discord.gg/hSwJNAb!

About

A discord bot for planning raids in Pokemon Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages