From 9faa3da29d42c320e0188996f8dac35b448cbd5f Mon Sep 17 00:00:00 2001 From: Peter van Arkel Date: Wed, 11 Aug 2021 13:30:57 +0200 Subject: [PATCH] remove obsoleted custom help function from code. replaced by builtin help from discord.py --- help/help.md | 12 ------------ help/help_roll.md | 32 -------------------------------- jeevesbot/bothelp.py | 19 ------------------- 3 files changed, 63 deletions(-) delete mode 100644 help/help.md delete mode 100644 help/help_roll.md delete mode 100644 jeevesbot/bothelp.py diff --git a/help/help.md b/help/help.md deleted file mode 100644 index fa03eda..0000000 --- a/help/help.md +++ /dev/null @@ -1,12 +0,0 @@ - -This bot is an all-purpose discord butler that's able to be customized to suit specific server needs. -Below is a list with currently implemented features and if available, commands to get more information. - -`# Diceroller` -Standard diceroller which works with the 1dX notation. See `!help roll` for more information on syntax and options. - -`# GIF embeds` -For servers that want to disable embeds for any reason (triggers, unwanted imagery, etc), this function will make sure that (for specific channels configured in the config) gif URLs are picked up by the bot and embedded. This whole functionality is used for a problem that shouldn't be there in the first place, but because GIFs are linked to the Embed setting in Discord, for some servers this might pose a solution. - -`# LARP Platform Babbelbingo` -For the LARP Platform babbelbingo, you can use the `!bingo` command anywhere on the LARP Platform Discord Server. You will get a babbelbingo card in PM. You can use the `!bingo` command again for a new card if your old one is done or if you want a new one with other questions. diff --git a/help/help_roll.md b/help/help_roll.md deleted file mode 100644 index 996400f..0000000 --- a/help/help_roll.md +++ /dev/null @@ -1,32 +0,0 @@ -All forms of diceroll notations should work properly, including adding or detracting dice with each other, adding or detracting numbers from dicerolls, or even adding or detracting sums within brackets. Below are some examples. - -``` -Simple rolls - -!roll 1d20+6 -!roll 1d20-(2+6) -!roll 1d20-4+(1d4+3) - -Advanced rolls - -!roll 1d20x(N) -- exploding dice, will add extra dice on each roll above threshold N. If N is not defined, will default to maximum possible roll. - -!roll 6d6^(N) -- highest N dicerolls will be kept, so 6d6^2 will keep the highest two dice. - -!roll 6d6m(N) -- middle N dicerolls will be kept, so 6d6m2 will keep the middle two dice. - -!roll 6d6v(N) -- lowest N dicerolls will be kept, so 6d6l2 wil keep the lowest two dice. - -!roll 2d6r(N) -- will reroll any dice that are below threshold N. The reroll is possible to be below the threshold N. - -!roll 2d6rr(N) -- will reroll any dice that are below threshold N. The reroll will be at the very minimum threshold N. - -!roll 10d10s -- will sort the rolls in order, this will not change the result. -``` \ No newline at end of file diff --git a/jeevesbot/bothelp.py b/jeevesbot/bothelp.py deleted file mode 100644 index 55d288b..0000000 --- a/jeevesbot/bothelp.py +++ /dev/null @@ -1,19 +0,0 @@ -keywords = ['roll'] - -def help(keyword=''): - """Filter for general help or specific keyword help.""" - if not keyword: - file = open('help/help.md') - contents = file.read() - return format((contents)) - if keyword[0]: - keyword = str.lower(keyword) - if keyword in keywords: - document = 'help/help_' + keyword + '.md' - file = open(document, 'r') - contents = file.read() - return format((contents)) - else: - file = open('help/help.md') - contents = file.read() - return format((contents)) \ No newline at end of file