t4g1 / z14 Goto Github PK
View Code? Open in Web Editor NEWz03 evolved
z03 evolved
Provide with an additional scoring feature (related to #12)
When jokes are delivered in a linked sequences, score should be calculated differently.
.score x-y-z
Where score = x * 0.9 + y * 0.8 + z * 0.7 +...
The bot need to make sure the following is always true when re-started
after a crash or update:
Give back the power to users by providing them with fair ways to fight back abusive authority.
.kt
Provide users with a keyboard shortcut to appropriately answer to uncalled for opinions.
Image: https://media.discordapp.net/attachments/803907263878004736/804420189235839036/YFIri5g.jpg
.opinion (.o)
Provide users will the ability to poll a channel.
Single-choice poll
.poll "Do you wanna marry me?"
.z14: Do you wanna marry me?
✅ Yes
❌ No
People can answer by clicking one of the emojis (see References section)
.poll "What do you prefer?" "Tomatoes" "Cucumbers"
.z14: What do you prefer?
1️⃣ Tomatoes
2️⃣ Cucumber
Multi-choices poll
User inputs question and ]2;9] choices.
.poll "Do you have a boyfriend?" "Yes" "It's complicated" "No"
.z14: Do you have a boyfriend?
1️⃣ Yes
2️⃣ It's complicated
3️⃣ No
Single choice poll
.poll "question"
.poll "question" "Choice 1" "Choice 2"
Multi-choices poll
.poll "question" "Choice 1" "Choice 2" "Choice 3" ... "Choice n"
Simple poll (Slack) https://simplepoll.rocks/
Polly (Slack) https://www.polly.ai/
Work a custom help that is consistent across each modules
Definition of done
See also: r/hydrohomies
As a Security Officer, I want to implement Semgrep, so block serious issues from reaching production.
Semgrep is a fast, open-source, static analysis tool that excels at expressing code standards — without complicated queries — and surfacing bugs early at editor, commit, and CI time.
Documentation is available here
Upon launch: Check if any user is in voice chat: If so: Starts timer to send periodic reminder
When user joins voice chat: Start timer if not already started
When user leave voice chat: Check if any user left in voice chat: If not: Stop timer
Avoir la possibilities d'envoyer une image a z14 et que le bot la renvois par message privé a quelqun au hasard sur le discord, sans dire de qui elle vient
pratique pour partager nos plus belle glace a l'eau
Nouveau sound effect: https://www.youtube.com/watch?v=PZSEXOMuO58
For marketing reason, business imperative requires the capacity to stream direct ogg from an icecast server (https://icecast.org/)
Definition of done
☐ The user have the ability to stream sound from a direct HTTP stream using ogg encoding (44100 bitrate, 2 channels, stereo) using command .stream
as in .stream http://boomjacky.live:8000
☐ It is possible to stop the stream using .stopstream
☐ Sound quality is acceptable from hearers in the channel.
☐ Behavior is the same as regular music bots
☐ Only user with DJ access rights have the ability to stream
Permettre d'utiliser une mention d'utilisateur plutot que le code
Allow users to set reminder with Z14:
.remindme 5:00:00 "Sortir le linge de la machine"
After 5 hours, Z14 sends a private message to that user telling her to "Sortir le linge de la machine"!
Can also broadcast it on several channels so other can press the issue to said users
Autre exemple:
.rm 10:00 "Les oeufs sont cuits"
The module should be able to:
Related to #5
There is currently a bug in the bot wherein malabar gets muted for 5 seconds instead of the expected 5 minutes when using the kick malabar command.
Please fix this issue ASAP, this is impacting our productivity.
Provide z1a with the same features as the Rythm bot to be able to reduce the total amount of bot on the server. (and also girl power!)
Discord bot to play music: https://rythmbot.co/docs/start
Query Reddit API to get /r/HydroHomies top posts, rank by upvotes and take first one to embed a nice pictures with the reminder. Remember those used and dont use the same twice before enough reminder have been posted (configurable history size)
Let less intelligent developers know when they're acctidentally being stupid and testing on the prod environement
Sends a notification in MP to the dev
z14: "Eh mais tu testes où là toi? T'es abruti un peu non?"
Find a mechanism to hot reload on code modification and log errors to text files so we can run multiple days test and catch many errors
Makes z14 connects to user's vocal channel and play the "et on m'ban" sample then disconnects
Provide a way to gain experience point by using the .km command.
By default, the command mute Malabar for 5 seconds, with this upgrade, each level allow the user to mute malabar for one more second.
Each effective .km give 1 experience point.
Each level require 75% more experience point than before.
1: 10 - 6 seconds
2: 18 - 7 seconds
3: 32 - 8 seconds
4: 56 - 9 seconds
5: 98 - 10 seconds
...
Draft of this upgrade has already been done, A PR will come later.
XOXO
PS: i've used Pickles to save my Dict into a file. flemme to convert a Dict into a CSV.
Related to #15
Improvement suggestion based on feedback received.
user: .kt
z14: Dans tes rêves @.user
In order to capture the depth of (name edited)'s abysmal humorous skills, .drum
should take accept support of arbitrary big numbers. On x64 architecture, python number type are bound within [-2147483648, 2147483648 ]
range. This is not enough, especially on the negative side.
Definition of done:
[ ] .drum
command should accept arbitrary large numbers, including using scientific notation.
[ ] .drum
command should accept integer up to the centillon
(10^600).
[ ] .drum
command should accept googol
(10^100) and googolplex
(10^googol
).
[ ] .drum
command should accepts avogadro
numbers (6.02214076 × 10^102).
[ ] .drum
command shoul accept graham numbers
(see https://plus.maths.org/content/too-big-write-not-too-big-graham).
Warning:
The density of information contained in a googolplex is higher than quantum physics information density limits. It's bigger than the amount of planck's volume that can fit in the universe. Thus, it's possible thinking about the googolplex or representing it in anyway triggers a blackhole.
https://www.youtube.com/watch?v=8GEebx72-qs
Reference:
https://realpython.com/python-numbers/
https://python-reference.readthedocs.io/en/latest/docs/ints/
https://www.livescience.com/31981-googol.html
Track T4g1 scores on jokes, provide its current average score as well as useful statistics.
Add new scores
The score is calculated over 10 points, with 0 being the lowest and 10 the highest.
After each joke, the score is input with
.score x
where x = score sur [-10;10]
Correct score
In case of error, the scores which have been input in the last 60m can be removed.
.score correct x
The functionality must check x against the latest input value & remove only one which matches.
Current average
The current average is calculated by SOMME(score)/COUNT(score)
Other statistics
Add score
.score +x
Remove score
.score -x
Display score average
.score avg
Display other statistics
.score stats
Available in the channel #general
Only @Paglops should be able to use the feature.
Provide users with an overview of the server's & users' statistics.
General
Leaderboards (top 3/5/10)
General Server stats
.stats
User specific stats
.stats @username
Leaderboard top 3
.top 3
Leaderboard top 5
.top 5
Leaderboard top 10
.top 10
Improve usability
Allow user to call a command through a shorten version.
Examples:
.score -> .s
.help -> .h
Suggest a new function to the development team of z14 directly from #bot
.fr "title" "description"
Provide users with an appropriate shortcut to answer boomers and boomer-like comments.
User 1: .ok boomer @.user2
z14: ok boomer @.user2
.ok boomer
.ob
Send a random meme from the deepest place of internet!
We want solutions to reduce spaming
A 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.