Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Nick-NCSU/hpbot
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-NCSU committed Mar 4, 2022
2 parents a9f74da + b4ea82f commit 1758f8f
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 67 deletions.
49 changes: 48 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,49 @@
# hpbot
Prefix: src!
A Discord Bot to connect the Speedrun.com and Hypixel APIs.

Uses MongoDB for a database to store the banlist and known runners.

## Slash Commands
Command|Description
:-----:|:-----:
/help|Shows a help message.
/hypixel|Provides helpful links for Hypixel Speedruns.
/link \<game>|Sends a link to the provided game.
/categories \<game>|Shows the categories/variables for the provided game.
/search \<keyword> (page)|Searches for games containing the keyword(s).
/leaderboard \<game>|Provides a leaderboard for the given game.
/verified \<user>|Provides the number of runs verified by the given user.
/queuelength \<game>|Provides the number of unverified runs for the given game.
/dream (simulations)|Simulates Dream\'s pearl and blaze rod odds.
/ping|Provides bot response time.

## Message Commands
### src!banlist
Command|Description
:-----:|:-----:
src!banlist list|Lists all accounts in the banlist.
src!banlist add \<player>|Adds an account to the banlist.
src!banlist remove \<player>|Removes an account from the banlist.
src!banlist search \<player>|Searches for banned player and returns information regarding ban

### src!runners
Command|Description
:-----:|:-----:
src!runners list|Lists all accounts in the known runners.
src!runners add \<player> \<src account>|Adds an account to the known runners.
src!runners remove \<player>|Removes an account from the known runners.
src!runners search \<player>|Searches for known and returns information account information.
src!runners searchsrc \<src account>| Searches by src account and returns all associated accounts.

### src!dream
Command|Description
:-----:|:-----:
src!dream (simulations)|Same as slash command version.

### src!check
Command|Description
:-----:|:-----:
src!check (...account)|Checks a list of accounts for Hypixel friends/guild lists, banlist, and known runners list.

## Credits
* [Nick-NCSU](https://github.com/Nick-NCSU) Developer
126 changes: 63 additions & 63 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"@discordjs/builders": "^0.12.0",
"@discordjs/rest": "^0.3.0",
"discord.js": "^13.6.0",
"dotenv": "^15.0.0",
"eslint": "^8.8.0",
"mongodb": "^4.3.1",
"dotenv": "^16.0.0",
"eslint": "^8.10.0",
"mongodb": "^4.4.0",
"node-cron": "^3.0.0",
"node-fetch": "^3.2.0",
"perf_hooks": "0.0.1",
Expand Down
1 change: 1 addition & 0 deletions scheduledcommands/dailyLB.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
const daily2 = [
'hypixel_ce',
'hypixel_bw',
'hypixel_bwce',
'hypixel_sw',
'hypixel_ag',
'hypixel_cg',
Expand Down

0 comments on commit 1758f8f

Please sign in to comment.