cedroux/owbot

This package is abandoned and no longer maintained. No replacement package was suggested.

A Discord bot for Overwatch players

dev-master 2022-07-23 16:00 UTC

This package is not auto-updated.

Last update: 2022-08-04 06:36:42 UTC


README

Introduction

OWBot is a simple Discord bot for Overwatch players.
It allows players to track their competive ranking points and compare themselves to other players of the server.

Available commands

General

  • !help
    List the available commands

  • !help admin (Admin only)
    List the available commands for the admin users

Overwatch

  • !rank <BattleTag>
    Display the competitive rank of any BattleTag

  • !addme <BattleTag>
    Link your BattleTag and your Discord ID to the bot. You will now appear in the rankings and your rank changes will be broadcasted on the specified channels.

  • !top
    Display the competive rank table of players registered in the server

  • !top2
    Same as !top but in a fancy way (Not mobile friendly)

  • !add <BattleTag> (Admin only)
    Add any BattleTag to the tracking (but not linked to a Discord ID)

  • !delete <BattleTag> (Admin only)
    Remove a player from the tracking.

  • !refresh (Admin only)
    Force a refresh of the ranks. Not recommended as it can cause some lags.

Administration commands

  • !setgame <Game name>
    Update the game played by the bot. Will be seen in the user list as Playing Game name

  • !restart
    Restart OWBot

  • !exit
    Kill the bot process

How to use

Requirements

  • PHP >= 7.0
  • Composer

Install

Get the repository and update dependencies

# Clone the repository
git clone https://github.com/Cedroux/owbot.git

# Change directory
cd owbot

# Install Composer dependencies
composer install

Configure

Copy and edit the default configuration file

cp config/config.example.php config/config.php
nano config/config.php

Launch

To start the bot, just execute bot.php

php bot.php