marcelropos / HM-DiscordBot

A Discordbot by and for first semester students of HM.
8 stars 5 forks source link

Add Redis methods #137

Closed maxwai closed 10 months ago

maxwai commented 10 months ago

Add Methods to write/read/delete the channel id of the main log pipe.

Also add Methods to write/read/delete email addresses and the infos involved with them. The addresses are stored as a hash (this is the key of an entry) and the value of the entry will be a string of 2 numbers combined (see below). The numbers that need to be saved are the amount of times the email was used and the amount of times the email verified someone.

Also add convenience Methods to quickly increment a number for an email address.

All Methods will take in the email address instead of the hash.

The numbers are saved as such: <num1>,<num2>

schitcrafter commented 10 months ago

I could implement this

schitcrafter commented 10 months ago

Which hash function should I use for hashing the emails?

maxwai commented 10 months ago

Closed with #187