Giter Site home page Giter Site logo

teamsbot's Introduction

TopCaliber Teams Bot Ranked Bot Logo

This Discord Bot allows for creation of teams between players in a discord server. When a team is created, the team is given a category channel with a default list of channels. The bot keeps track of the members of the team, and uses this information to maintain access to these channels. If all members of a team leave, the channels are deleted.

Commands

{ } shows a command parameter is optional.

teams								Help menu
teams create [team name]    					Create a new team
teams invite [user]						Add a user to the user's current team
teams revoke [user]						Revoke an invite to your current team for user.
teams leave							Leave your current team.
teams join 							Join a team. (requires invite)
teams points							Display the user's teams' points.
teams points {team name}					Check the points of a specific team.
teams top {number of teams} 					Check the top teams with their points.
teams roster {team name}					List the players on a given roster.
teams play teamName [user's team]-[other team]			Send a message for confirmation to the other team.
teams confirm teamName						Confirm that a game with the listed score occured.
teams deny teamName						Deny that a game with the listed score occured.
teams pending {games}/{invites}					View all pending match results with other teams.

The bot will remove its output from its commands, if typed correctly, in order to prevent spam. Also to reduce spam, the bot will show the current ranked queue after each command typed, but will then be automatically removed after 5 minutes.

Control of the bot

node index.js - Start locally

  • Linux Server
    Use the following commands through SSH to start the bot:
    Start and persist through SSH: node index.js > console_error.txt > console_output.txt &
    Look at active background processes: ps -ax | grep node
    Kill the process running in the background: kill -9 {ProcessNum}
    Obtain the {ProcessNum} after looking at the active background processes.
    Use "Exit" when finished, before closing console.

Installation

This bot uses DiscordAPI v12.
How to get a token: https://www.writebots.com/discord-bot-token/

If you're using this bot on your own, you will need the following.
config.json in this format:

{
	"prefix": "TEAMS",
	"token": "token"
}

A "data" folder in the root directory to contain all the teams information with the following names:

  • data
    • team-invites.txt
    • team-matches.txt
    • team-points.txt
    • team-roster.txt
    • teams.txt

teamsbot's People

Contributors

bsweet16 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.