Skip to content

Instantly share code, notes, and snippets.

View DuckMasterAl's full-sized avatar
🐔

Duck DuckMasterAl

🐔
View GitHub Profile
@DuckMasterAl
DuckMasterAl / Setup a Privacy Policy.md
Created September 10, 2020 20:03
Learn how to Setup a Privacy Policy for your Discord Bot!

Hello! Due to a change of Discord's Developer TOS (https://discord.dev/legal) you now need a Privacy Policy for your bot! What is a Privacy Policy? According to Wikipedia, "A privacy policy is a statement or legal document that discloses some or all of the ways a party gathers, uses, discloses, and manages a customer or client's data."

What does my Privacy Policy need to Have? Please read this message for information about what your privacy policy needs to include: https://advaith.is-in-hyper.space/1faafadb0f.png

Why do I need to add this? You need a valid privacy policy in order to submit a bot on Discord Extreme List and in order to follow Discord's Developer Terms of Service.

@DuckMasterAl
DuckMasterAl / keybase.md
Created September 11, 2020 15:03
Keybase Verification

Keybase proof

I hereby claim:

  • I am duckmasteral on github.
  • I am duckmasteral (https://keybase.io/duckmasteral) on keybase.
  • I have a public key ASA8iHmpD3idbBZ0zLWuGYKjwDn00PFW-z5FXS13GgNGlgo

To claim this, I am signing this object:

@DuckMasterAl
DuckMasterAl / ! Turkish - Setup a Privacy Policy.md
Last active September 18, 2020 17:33
[Turkish Edition] Learn how to Setup a Privacy Policy for your Discord Bot!

Merhaba! Discord'un Geliştirici Kullanım Şartları'ndaki (https://discord.dev/legal) bir değişiklik nedeniyle artık botunuz için bir Gizlilik Politikasına ihtiyacınız var!

Gizlilik Politikası nedir? Wikipedia'ya göre, "Gizlilik politikası, bir tarafın bir müşterinin veya müşterilerin verilerini toplama, kullanma, ifşa etme ve yönetme yöntemlerinin bir kısmını veya tamamını açıklayan bir beyan veya yasal belgedir."

Gizlilik Politikamın Sahip Olması Gerekenler: Gizlilik politikanızın neleri içermesi gerektiği hakkında bilgi için lütfen bu mesajı okuyun: Privacy Policy Image

Bunu neden eklemem gerekiyor?

@DuckMasterAl
DuckMasterAl / Turkish - Setup Allowed Mentions.md
Created September 18, 2020 17:39
[Turkish Edition] How to Use Allowed Mentions (I stole this from @TheMoksej)

Bahsetmeleri temizlemeye mi çalışıyorsunuz? İşte kullanmanız gereken birkaç örnek. Not: Kitaplık örneğinize baktığınızdan ve gerekli kitaplık sürümünün veya daha üstünün yüklü olduğundan emin olun, aksi takdirde çalışmaz.

Discord.py (v1.4.0 veya üstü gerektirir) Birden çok seçenek var:

  1. komutunuzun çıktısından sonra , allow_mentions = discord.AllowedMentions (roles = False, Everyone = False) ekleyin. (yalnızca bireysel mesajlar için çalışır)
  2. istemciye koyun (bunu yaparsanız, botunuzun gönderdiği tüm mesajlar varsayılan olarak kimseye ping atmaz) ╠ ** Örnek 1 ** Alt sınıfa sahipseniz:
@DuckMasterAl
DuckMasterAl / Privacy Policies.md
Last active December 22, 2021 21:32
Valid Discord Privacy Policies
Apple
Apricot
Artichoke
Asparagus
Avocado
Banana
Beans
Beets
Bell Peppers
Blackberries
@DuckMasterAl
DuckMasterAl / Setup Allowed Mentions.md
Last active October 1, 2023 22:00
How to Use Allowed Mentions (I stole this from @TheMoksej)

Trying to sanitize mentions? Here are few examples what you should use. Note: Make sure you're looking at your library example and you have the required library version or higher installed otherwise it won't work.

Discord.py (requires v1.4.0 or higher) There are multiple options:

  1. add , allowed_mentions=discord.AllowedMentions(roles=False, everyone=False) after the output of your command. (works for individual messages only)
  2. put it into client (if you do this, all messages your bot sends will ping nobody by default) ╠ Example 1 If you have it subclassed: