This is a rewrite branch, because I'm trying to migrate from mongo to Postgres, this is in no way stable.
Help
---
Commands
claim string...: claim a dropped character
favorite string...: set a char as favorite
give CharacterID @user: give a char to a user
help: display general help
invite: send invite link
list @user...: display user characters
profile @user...: display user profile
quote string...: set profile quote
roll: roll a random character
verify CharacterID... @user...: check if a user owns the waifu
---
Subcommands
search: Search for characters, anime, manga and users
search anime string...: search for an anime
search character string...: search for a character
search manga string...: search for a manga
search user string...: search for an anilist user
trending: View trending manga and anime
trending anime: search for an anime
trending manga: search for a manga
I'm open to new feature requests, please follow the template given and/or formulate a clear request
If you want to contribute, just try to follow a clear style just as the rest of the code
Try to space your code and follow general programming guidelines
About comments :
Good code is its own best documentation. As you’re about to add a comment, ask yourself, ‘How can I improve the code so that this comment isn’t needed? – Steve McConnell
See Project to view the current progress of the bot
Rename config_example.toml
to config.toml
and change the values according to your needs
docker-compose up -d
The database part is generated using sqlc
If you make any modifications to the files in /sql
you can re-generate the code using
docker run --rm -v $(pwd):/src -w /src kjconroy/sqlc generate
Copyright 2020 PERY "Karitham" Pierre-Louis
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.