EliphasNUIT / PHTM-b0t

Multipurpose Discord Bot. Current main functionality is an automated combat log uploader for Guild Wars 2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GW2 Log Bot

For all of your raid and fractal log needs!

The intention of this Discord bot is to automate the monotonous process of manually uploading and posting logs after every raid or fractal clear. At the call of a single command, your most recent logs will be uploaded to both dps.report and GW2Raidar(deprecated), and all of the links will be posted in your Discord server within minutes.

Supported languages: English, German, French, Spanish

This project has been placed in maintenance mode and will not receive any updates unless more raids / fractals are added to the game (Strikes are not included).

Installing the bot

1. Install Python 3.6+. To guarantee the best results, install Python 3.6.5(32-bit)(64-bit).
2. During the setup, make sure to tick Install launcher for all users (recommended) and Add Python 3.6 to PATH.
3. Install Git for Windows.
4. During the setup, make sure to tick Use Git from the Windows Command Prompt,
Checkout Windows-style, commit Unix-style endings, and Use MinTTY (the default terminal MSYS2).
5. Open Git Bash by right-clicking inside the empty space of the folder where you would like to
keep the bot and clicking Git Bash Here.
6. In the command window that opens, run the following command:
git clone https://github.com/aytiel/PHTM-b0t.git GW2LogBot -b gw2-uploader.

Setting up the bot

Note: You can skip steps 1 and 2 if somebody is already running an instance of the GW2 Log Bot in your Discord server.
1. Create a bot account. Helpful tutorials can be found here and here.
2. Invite the bot to your Discord server using the following link:
https://discordapp.com/api/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=27648&scope=bot.
Make sure you replace YOUR_CLIENT_ID with the client id listed on your application page.
3. Update settings/config.py with the token associated with your bot account.
TOKEN = 'BOT_TOKEN_HERE'
You can open the settings/config.py file using Notepad or Notepad++.
Also, feel free to change the command PREFIX as well if you wish.
4. Double-click on install.sh to install all the required dependencies.
5. Run the bot by double-clicking the run_bot.sh script. The script should update the bot to the latest version and then run it. If the update fails, you can retrieve a fresh, up-to-date copy by repeating Steps 5 and 6 of Installing the bot.

Join the Discord server for questions, concerns, and troubleshooting and for access to custom boss icons for more aesthetic log posting.

Commands

The default prefix is $.

Command Description
login Assigns the bot to you.
upload [raids/fractals]
(title)
(--time)
(--num x)
Uploads raid or fractal logs.
(Optional) Add a title to the post
(Optional) Include the killtime for each boss in the log post
(Optional) Upload the x most recent logs of each selected boss
shutdown Shuts down the bot. Recommended for when you are finished using the bot.

Preview

Caveats

  • Only the person booting up the bot may upload logs. You should be able to tell who the current user of the bot is by looking at the bot's activity status. It should say Current User: SOME_USER.
  • Due to no official updates from the new GW2Raidar team, uploading to GW2Raidar has been deprecated until further notice.
  • If you are encountering the issue where the bot is not responding to your commands, please try toggling the option in your bot Developer Portal to allow your bot to receive messages.

About

Multipurpose Discord Bot. Current main functionality is an automated combat log uploader for Guild Wars 2.

License:MIT License


Languages

Language:Python 93.7%Language:Shell 6.3%