Skip to content

Instantly share code, notes, and snippets.

View MoonlightCapital's full-sized avatar
🥎
Relaxing

MoonlightCapital MoonlightCapital

🥎
Relaxing
View GitHub Profile
@MoonlightCapital
MoonlightCapital / storing_your_token_safely.md
Last active August 28, 2021 19:21
Storing your bot token safely

Storing your bot token safely

Your bot token is a very crucial piece of information. It must be protected from being leaked at all cost, otherwise a malicious actor may use it to perform disruptive actions as your bot.

Using an env file

An env file is used to store environment variables, which are kept separate for the rest of the code. They are ideal to store tokens, API keys and other kind of sensitive information. Python does not support them natively, so we're going to install a package to make use of them. Type this command in your terminal:

pip install python-dotenv
@MoonlightCapital
MoonlightCapital / suggester-privacy-policy-italian.md
Last active July 22, 2021 19:28
Suggester - Informativa sulla privacy

Informativa sulla Privacy e la Sicurezza

Per far si che il bot funzioni, conserviamo delle informazioni informazioni relative ai server e agli utenti. La lista sottostante elenca quali informazioni vengono raccolte e perché.

Dati che preserviamo

  • ID degli utenti: Li conserviamo per determinare gli autori dei suggerimenti, in modo che il bot mostri chi ha inviato un suggerimento. Sono inoltre conservati per una lista di utenti bloccati, sia a livello globale sia per blocchi nei singoli server.
  • ID dei canali: Li conserviamo così che il bot sa dove inviare dei messaggi, ad esempio quelli dei suggerimenti in attesa di revisione, dei suggerimenti approvati, dei suggerimenti respinti e messaggi inerenti ai registri.
  • ID dei ruoli: Li conserviamo per permettere agli amministratori dei server di configurare dei ruoli che hanno certi permessi nelle interazioni con il bot (staff, admin, ruoli bloccati, ecc...)
  • ID dei server: Li conserviamo per tenere le configurazioni e i suggerimenti legati
@MoonlightCapital
MoonlightCapital / phrase-blacklist.txt
Last active July 25, 2020 18:01
Invite Deleter spam content blacklist
##This is a list containing all the phrases Invite Deleter will autoban for.
My naked photos
My sexy photos and chat with me
Choose to meet for SEX in your town?
Want to contact for SEX in your town?
Dating for SEX! Chat me Site
My private phot
Connection for SEX with you in your town!
Chat for SEX in your town!
@MoonlightCapital
MoonlightCapital / keybase.md
Created August 28, 2017 06:24
My keybase verification

Keybase proof

I hereby claim:

  • I am MoonlightCapital on github.
  • I am moonlightcapital (https://keybase.io/moonlightcapital) on keybase.
  • I have a public key whose fingerprint is D6F7 74CF 4419 3400 4C6F F2BD 4853 BDC9 3667 B2C4

To claim this, I am signing this object: