| Commit message (Collapse) | Author | Age | Lines |
| ... | |
| | | | | | | | |
|
| | |\ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
setting up easter directory for the easter season
|
| | | |/ / / / / |
|
| | |\ \ \ \ \ \
| | |/ / / / /
| |/| | | | |
| | | | | | |
| | | | | | | |
Save the Date - Static Resource Load
|
| | | | | | | |
| | | | | | |
| | | | | | | |
a requested change
|
| | | |/ / / / |
|
| | |\ \ \ \ \
| | |/ / / /
| |/| | | | |
set up bot directory for pride event
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | |/ / / / |
|
| | |\ \ \ \
| | | | | |
| | | | | | |
specify UTF-8 for opening snake resources JSON
|
| | | | | | |
| | | | | |
| | | | | | |
Co-Authored-By: MadisonMcdonald <[email protected]>
|
| | | | | | |
| | | | | |
| | | | | | |
Co-Authored-By: MadisonMcdonald <[email protected]>
|
| | |/ / / / |
|
| | |\ \ \ \
| | |_|_|/
| |/| | | |
Pickup Lines
|
| | | | | | |
|
| | |/ / /
| | | |
| | | | |
Includes the File for the cog containing the command in addition to the JSON file containing the list of pickup lines
|
| | |\ \ \
| | | | |
| | | | | |
Fix Docker build issues
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | |/ / / |
|
| | |\ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Snake cog
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | |/ / |
|
| | |\ \ \
| | | | |
| | | | | |
Prevent SeasonalBot from changing server icon during off-season periods
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* The `icon` attribute of the `SeasonBase` class now defaults to the original server icon.
* Getting avatar icons through `get_icon` by passing in `avatar=True` returns `bot_icon` if present.
|
| | |/ / /
| | | |
| | | |
| | | | |
(non-evergreen) periods.
|
| | | |/
| |/| |
|
| | |\ \
| | | |
| | | | |
Add .myvalenstate
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
A bug appeared, that, if a user were to have only one or two Valenstates,
would throw an IndexError, thus blocking the command to run at its fullest.
This commit aims at fixing this bug by refining how the leftovers are handled:
Before there was only one line determining the leftover string, that was
than put into the embed's add_field method with some extra stuff around
it and a fixed title.
This has now been changed to having a variable title changing with the
length of the matches list. For example if you have 3 original matches,
the matches list would be of length 2, thus the original title is displayed.
If you have only 2 or just 1 match however, the matches list would be of
length 1 or 0, each of which feature their own title and text now.
Some style changes have been made as well: the add_field and set_image
methods are now one liners.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
A few things have been changed:
- The comment under STATES = json.load(file) was useless and has been
removed
- A logging statement has been put under the setup function:
log.debug("MyValenstate cog loaded")
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Closes #108
This pull request adds a beta version of the command myvalenstate.
This command sends an embed containing a users valenstate to the channel
it has been called in. The process used here is to first put the username
into a spaceless, lower case form and than compare it to the countries
listed under valenstates.json, put into the same form, using an implementation
of the Levenshtein algorithm.
This beta version already implements everything needed for the command to
work properly. The follwing things are missing, not meant for the future
full implementation or are subject to change if needed:
- Short comments (25 missing)
- name parameter in myvalenstate (not meant for staying/Debug)
- Object names in valenstates.json (subject to change) (1)
- Docstring for levenshtein (subject to change)
- Docstring for myvalenstate (subject to change)
(1) - The object names can be put into the right case to omit the operation
operation on line 54 (lower_state = state.lower().replace(' ', ''))
|
| | |\ \ \
| | |_|/
| |/| | |
AoC Join Code Refactor
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | |\ \ \
| | | | |
| | | | | |
Added command .bemyvalentine
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
lists insted of dictionary.
|