terag / kadok Goto Github PK
View Code? Open in Web Editor NEWKadok is a bot developed for the Discord Guild "Les petits pedestres"
Home Page: https://terag.github.io/kadok/
License: GNU General Public License v3.0
Kadok is a bot developed for the Discord Guild "Les petits pedestres"
Home Page: https://terag.github.io/kadok/
License: GNU General Public License v3.0
I was thinking sqlite
The documentation is properly reachable on kadok.pedestres.fr using HTTPS.
There are errors when loading sub resources due to protocol mismatch with HTTP
Go on https://kadok.pedestres.fr
The page does not load all the resources for a proper displaying
Implement Roll a dice function that triggers following XdYY+Z
convention
To allow discord user to roll dices
Users, Game masters
XdYY+Z
p1: kadok dice 4d8+6
kadok: 22 | ([2] [6] [5] [3]) + 6
it may be interesting to add an editorconfig file to enforce the new line behavior
Originally posted by @sarlam in #27
EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs
Developers
A command to display information about the bot should be available
Project, Users, Developers
the help function should display:
as a proposal the command could be kadok tatan
because:
Tatan, elle fait des flans.
Brice Fournier, Kaamelott, Livre II, 60 : Le Jeu du caillou, écrit par Alexandre Astier.
More idea where that comes from https://fr.wikiquote.org/wiki/Kaamelott/Kadoc
Add those characters to the bot:
Members of the discord request it !
when invoked through kadok aqui
it should display a list of available characters
So user are aware which characters are available
Users
kadok aqui
should display the full list of characterskadok help
should display the command aqui
Once a PR is approved and merged, the bot should be deploy automatically through github actions to a development environment
Reduce the time between a line of code being written and being available for tests
DevOps
to be refined
The bot should be able to handle calls from multiple guilds and well manage the permission structure associated to these guilds.
Due to current security implementation, the bot understand the roles hierarchy from one guild only. This can causes unexpected behaviors or accesses when called from different guilds.
Originally posted by @sarlam in #21
Users
It should use the current way of implementing roles hierarchy
Through github Actions, docker image should be produced published somewhere
To ease the bot distribution and future deployment
DevOps
to be refined
The security package allows to check if a permission is granted to a role and if the calling user has this role.
There is an error when checking an user roles' permissions that makes the bot's flow to crash.
The bot may not respond due to an internal panic error because the role is not set in the hierarchy.
Clear documentation and understanding of the Permissions inheritance in the actions-hierarchy.
Answer the question: Should a permission be inherited in the Actions hierarchy ?
It mights lead to some issue if not documented well.
As of today there is no permission tree above the actions.
As an example that means :
Originally posted by @sarlam in #21
Users, Developers
It must be well documented and prevent from ambiguities.
Add go template for text outputs
Originally posted by @sarlam in #27
Makes the bot more flexible by allowing the modification of the texts for traduction or customization purposes
Possible use of https://golang.org/pkg/text/template/
when invoking kadok help
the user should be displayed a list of available commands
to help the user navigate through the available commands
Users
bot commands should be conditioned by user roles and rights
To allow implementation of commands to manage and moderate the bot or for the bot to access safely sensible information from third parties (minecraft)
Bot operators, final users
Have a template system with external templates files for bot's answers and commands
Answers are hard coded, in near future we may want to investigate to have some template system with external templates files.
I would permit a better customization and translation of Kadok functionalities for the users.
Originally posted by @sarlam in #21
Users, Developers
A template format referencing all the customizable string must be documented
Make the bot able to handle multiple servers at the same time
to open it to more people/server
A full documentation should be available for both users and developers of the project.
To help people use the bot as well as developer join the project
Developers, Users
A command to display answer request with an ad hoc youtube video saying the text instead of writing text.
Why
To make interactions with the bot funnier
Who will benefit
Users
functional criteria
add a Dockerfile
to insure the same behavior of the bot everywhere, ease it's development and prepare for it to be deployed anywhere
DevOps
to be refined
Given a character (example lac
) the bot will answer to words that contains that character (like J'ai une belle cadillac
)
The bot should ignore those sentences
Includes Gauvain quotes from https://fr.wikiquote.org/wiki/Kaamelott/Gauvain
Yvain is present, there is no reason for the other petit pedestre to be absent
Everybody
gauvain
in a sentence in one of the channel kadok listen at should trigger it to post a random quote from himA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.