r/Discord_Bots • • Jan 01 '22

This Discord Bot Will Change Discord Forever

606 Upvotes

I made a bot that translates discord messages into braille, so Blind people can use discord. Here is the code.

import discord

class MyClient(discord.Client):

    async def on_message(self, message):

        if not message.author == self.user:

            await message.channel.send(f'{message.author.mention} said: "{message.content.lower().replace("a", "⠁").replace("b", "⠃").replace("c", "⠉").replace("d", "⠙").replace("e", "⠑").replace("f", "⠋").replace("g", "⠛").replace("h", "⠓").replace("i", "⠊").replace("j", "⠚").replace("k", "⠅").replace("l", "⠅").replace("m", "⠍").replace("n", "⠝").replace("o", "⠕").replace("p", "⠏").replace("q", "⠟").replace("r", "⠗").replace("s", "⠎").replace("t", "⠞").replace("u", "⠥").replace("v", "⠧").replace("w", "⠺").replace("x", "⠭").replace("y", "⠽").replace("z", "⠵")}"')

client = MyClient()
client.run('')

r/Discord_Bots • • Nov 14 '20

Petition for Discord.py and Discord.js flairs.

359 Upvotes

Hello! I'm fairly new to this reddit and I have been trying to support as well as contribute to this community, since it's something I love and enjoy so much. I have a request for the moderators to add discord.py and discord.js flairs, since people seem to be asking questions or giving tips without specifying which language they are speaking sometimes.

Thanks for your time ^_^


r/Discord_Bots • • Jun 13 '21

Showoff Sunday I made a discord bot that turns LEDs under my monitor red when I'm muted

317 Upvotes

r/Discord_Bots • • Aug 28 '21

Danny, creator of discord.py, is halting development of the library. Discord.py has come to an end

278 Upvotes

r/Discord_Bots • • Jan 16 '22

Showoff Sunday I built an AI Discord bot that bans ugly NFT profile pictures

258 Upvotes

I wanted to do a project to learn convolutional neural nets, couldn't think of anything so made this!

The bot is trained on images of the monkey/lion/some other commonly seen ugly nft pictures.

Video:

https://www.youtube.com/watch?v=Dogww29rs3c


r/Discord_Bots • • Apr 25 '21

Showoff Sunday Aoede: self hosted Spotify -> Discord bot

232 Upvotes

Aoede is a Discord music bot that directly streams from Spotify to Discord. The only interface is Spotify itself.

Demo GIF available in the readme:

https://github.com/codetheweb/aoede

Let me know if you have any questions or feedback!


r/Discord_Bots • • Jun 21 '21

Showoff Sunday Suicide Prevention Bot

186 Upvotes

Helps prevent suicides. It will send an embed with info to get help and supports many languages. This bot was the second bot I helped create and made me learn more about javascript so I thought I might share.

Github with all the cool code: https://github.com/Bobrobot1/Suicide-Prevention-BotImage of the bots embed: https://i.imgur.com/W3gL8kB.png


r/Discord_Bots • • Mar 06 '22

Discord Library Discord.py has resumed development. Here's Danny's announcement on coming back!

152 Upvotes

r/Discord_Bots • • Mar 14 '21

Showoff Sunday Made a Word Cloud bot !

152 Upvotes

This bot can make a word cloud for each users of your discord server, including emojis 😁
Here is the GitHub if you want to check it out
The ReadMe has pics and a detailed explanation of how it works and how you can run it for your own server.

Feel free to ask if you have questions or concerns about this project 👌


r/Discord_Bots • • Feb 07 '21

Hack Week tfw I actually succeeded in spacing discord's impossible to space embed.

131 Upvotes

https://ibb.co/hH7nC4h

I'm sure others also succeeded at this. I'm just so fucking happy I actually did it.

As you can see, I only had three fields here. I'm using Discord.py .

The key here is to use str.ljust(space_num, ""), the space is specifically, <0x7f> for the normal embed and just regular space for the code block.


r/Discord_Bots • • Sep 10 '21

[Megathread] The Future of discord.py

130 Upvotes

Since the announcement from Rapptz to stop the development of discord.py there has been a multitude of posts regarding the future of the library and what they should do.

From now on I would please ask you all to keep the discussion within this post, and all other posts will be removed. (Feel free to report them, without it's hard to keep up sometimes)

Luckily u/Madbrad200 started creating a nice list of current alternatives - If there are any new ones feel free to comment and I will update it:

discord-interactions https://discord.gg/bjq6np9B8A (docs, github)

discord.py-message-components https://discord.gg/RAzvhvtHCS (docs, github)

disnake https://discord.gg/4zs4QBqfxD (github)

enhanced-dpy / edpy https://discord.gg/kkUH8ZWCHj (docs, github)

hata https://discord.com/invite/3cH2r5d (docs, github)

hikari https://discord.gg/hxXDMzdNCd (docs, github)

nextcord https://discord.gg/hzZZEAmaxG (github, docs)

Novus https://discord.gg/QqERGSKepV (github, docs)

pycord https://discord.gg/U7J4TbDETd (github, docs)

These are just some alternatives that may or may not be good. Not all of them are direct forks of discord.py (e.g. hata and hikari).

As always, join our Discord Server!

- Maku


r/Discord_Bots • • Feb 17 '24

Bot Request [Free] Music bot recommendation

114 Upvotes

Can someone share a discord music bot that does quite literally everything? (rewind, forward, queue, ability to play playlists etc etc).


r/Discord_Bots • • Oct 21 '20

Tutorial I made a series teaching you how to make a Discord bot dashboard!

113 Upvotes

The dashboard is coded in NodeJS. The dashboard can be with bots in different languages too (C#, Python etc.) in separate projects, and I could make a tutorial on that, or it can be used as an extension of your NodeJS bot. The series is aimed at people with basic NodeJS knowledge.

The playlist is complete and the project focuses on simplicity and practicality - https://www.youtube.com/watch?v=tpIQM90o_pY&list=PLGfT2ttRbfizUIO1YEITWaquqBsNqHv7v&index=1

The intro shows the dashboard's previous version, before the series. The new aim was to make the new dashboard better and look like more Discord, and I believe we achieved that.

Feedback on future video ideas would be helpful, or what I can improve upon. The code is also open source, but is currently awaiting a fresh new update.


r/Discord_Bots • • Jul 05 '20

Tutorial Please learn the language before you ask for help.

109 Upvotes

Hello. I've been in this sub for some time now and every now and then i have personally helped people with their bots via discord. I usually have no problem spending time helping people out because at one point even i needed help and sometimes I still do. Its totally ok to ask for help but please make sure you know the basics of the programming language you chose for your bot before you jump into making a bot. Its one thing to learn some concepts WHILE coding the bot and totally another thing to just have 0 idea about the language and start coding the bot.

I use d.py so I'll use that for an example. It's ok for you to start coding the bot without knowing about say sql. Some people like to learn with a project and that is ok. However, it is NOT okay for you to jump straight into d.py without knowing the basic concepts of python like say for loops, conditionals , pip etc.

I hope this makes sense to the new comers who want to start making discord bots. Please take your time to learn the language. A few hours invested into learning basics can greatly help you out.

Edit: Spelling


r/Discord_Bots • • Mar 18 '17

FAQ

104 Upvotes

Bothosting

Need to run your bot 24/7? Get a cheap VPS.

Linux hosting:
Scaleway - Incredibly cheap but powerful VPSes, owned by https://online.net, based in Europe.
Digital ocean - US-based cheap VPSes. The gold standard. Locations available world wide.
OVH - Cheap VPSes, used by many people. France and Canadian locations available.
Time4VPS - Cheap VPSes, seemingly based in Lithuania.
Linked - More cheap VPSes!
Vultr - US-based, DigitalOcean-like.

Windows hosting:
(To be honest, you should probably just use a linux box.)
Microsoft Azure - Microsoft-owned. Not on the cheap end, however.

Others:
Amazon AWS - Amazon Web Services. Free for a year (with certain limits), but very pricey after that.
Google Cloud - AWS, but Google.
LowEndBox - A curator for lower specced servers.

Self-hosting:
You can always self-host on your own hardware. A Raspberry Pi 2 B will be more than sufficient for small to medium sized bots.
For bigger bots, you can build your own server PC for usage, or buy a rack server. Any modern hardware should work 100% fine.

Free hosting: No. There is no good free VPS hoster, outside of persuading somebody to host for you, which is incredibly unlikely.


Make a bot

So you want to make your own bot?

Making a bot sure is an ambitious idea, but can you really do it?
I will be giving a quick rundown of what to do when you make your own bot.

  • Join Discord API. This server can help you as you work on your bot.

  • Learn a programming language. I recommend using Python or NodeJS as they are often seen as the easiest.

  • Find a discord library for your language. Some languages have multiple libraries, it might be good to compare them before choosing.

  • Study your language and chosen library.

  • Try it yourself. This is the hardest part, but also the most fun.

  • Issues? Ask questions in the Discord API server, in the proper channel.


MUSICBOTS GUIDE

These are the bots I have found to have the most unique features
Note that this isn't a top listing, all bots here are just as much recommended

  • Rem

    • Stable

    • Reliable

    • Nearly no lag

    • Simple.

  • Hatsuse Izuna

    • Minimal lag.

    • Crossfade

    • Supports more sources than any other bot as far as I know

    • Chunked queue (one person can't fill up the entire queue without other people's songs playing)

    • Queue settings (in development)

    • Skipping requires at least 50% of the people in the voice channel to skip, unless the requester skips.

  • Kowala

    • Music unstable until rewritten

    • Autoplaylist feature

    • Supports a lot of sources

    • Music is kind of customizable

there are more bots, some of which you might find better

To use these bots, do the following:

  • Go to discordapp.com/login and log in on the correct account

  • Go to bots.discord.pw and find the bot you're looking for

  • Click the invite button

  • A window will pop up. Select the correct server to add it to (you need manage server) and select the permissions it will have.

  • Click Authorize

The bot should now be added to your server!


r/Discord_Bots • • Oct 26 '23

Question A discord bot that allows users to track their TikTok Account Views and Followers

88 Upvotes

A discord bot that allows users to register TikTok/Social Media Account names and then tracks how many views and followers they have on the registered account.

I found an example in a discord server before which i can share just outside of this post so it doesn't get flagged.

It uses /register to allow you to register an account where you type your username in and then it finds it on tik tok and then asks you to change you bio to a randomly generated code to confirm its yours.

After this you can use /stats and it will show you all your registered accounts and the

Total Accounts: 7

Total Videos: 111

Total Followers: 1,084

Total Views: 752,498

Total Likes: 26,116

Total Comments: 742

Total Shares: 2,212

Total Downloads: 255

Total Bookmarks: 3,746

Would love to know how you would go about making this for my own social media content course server and would greatly appreciate any help or ideas as the server i found it in seems to be gatekeeping.


r/Discord_Bots • • Dec 25 '20

New Rule: No 'Bot Support' Questions

87 Upvotes

Hey everyone! It's been a while since we've had a new pinned post.

Lately we've seen an increasing amount of posts asking very specific questions for existing bots that would fall under the category of 'Bot Support'. Since most of these questions can only be answered by the developers or their support teams we are introducing a new rule

No 'Bot Support' Questions

This subreddit is meant for Discord bot development and as such we cannot tell you how to do something with a specific bot. If you have issues with an existing bot please consult their developers through their support server or other means they provide.

As always, our Discord server is a great place to ask for help, post bot requests or just chat.

Thanks,

Maku


r/Discord_Bots • • Jul 29 '20

Can I mention a role with an embed message using carl-bot?

80 Upvotes

I have a role channel where people can find out what all the roles in my server do and how to get them but I an embed message but when I make one I can't mention the role. Is there a way I can?

Edit:I found how to do it in their discord thanks + if anyone need help with this do <@&role id>


r/Discord_Bots • • Jan 29 '23

Meta I run a bot with over a million users, and Discord deleted my account and ghosted me.

79 Upvotes

The bot is gone and they won't let me transfer ownership of my server. It's been over 2 weeks with no answer to my support tickets, so the deadline to get my account unbanned has passed. It's mind blowing that a multi-billion dollar company can deign a customer support system this awful.

This is the automated email I got from Discord when my account was terminated:

Hello, Discord is focused on maintaining a safe and secure environment for our community. We've found your account to be in violation of our Terms of Service or Community Guidelines. As a result, we've disabled your account for the following reason: Your account engaged in or facilitated abuse of the Discord platform by participating in any of the following behaviors: Selling or attempting to sell a Discord account or server Fraudulent Nitro or Boosting activities Submitting false, malicious, or mass reports to Trust & Safety Sincerely, Discord Trust & Safety 

I've heard stories about this happening to other people so I've been extremely careful about not breaking TOS and Community guidelines and I actually read the enitre TOS when I was researching what I can and can't program my bot to do, so I know the rules and I know I haven't broken any. I can understand if this happens once in a while because Discord is clearly understaffed and has a lot of moderation problems to deal with, but randomly banning accounts like this and offering effective way talk to a human at discord about the issue is unacceptable.

Submitting a ticket to Discord Trust and Safety is like talking to a brick wall. Either you get a useless automated response within 10 minutes, you get a response 6 months later asking for more information about something you forgot about, or you get nothing at all. I can still log into support.discord.com because it is run by Zendesk instead of Discord, I submitted a ban appeal as I was instructed to do. However, Discord accounts self-destruct if they have been disabled for 2 weeks and it's a miracle if you can get Discord Trust and Safety to respond in under 3 months.

So, what solution does Discord offer to the many people in this situation? According to their automated email sent to one of the admins of my server, nothing. Their official suggestion is that I create a new account, make a new server, and post the invite link to the new server in the old one and tell everyone to join. Usually they will transfer ownership of the server to an admin or an owner's new account, but if the owner's account was terminated by Discord they refuse.

What about the bot? Since my account owned the bot, it's gone too. Discord doesn't even about developers at all. Read Danny's post about why he stopped developing discord.py for more info, but tldr Discord is so out of touch with its community and the developers that make bots for the platform that they keep making rules and policies that actively harm the bot ecosystem and have led to many large bots shutting down.

Today, they still sent me an email telling me to enable server subscriptions on my server, on the account that they deleted. They have the rescources to create an entire online course for server subscriptions but aren't willing to put in the rescources to create a functional customer service system.They have been actively destroying the bot ecosystem while letting bots like MEE6 break TOS because it makes them more money. At this point Discord has gone so far downhill as a platform that they only care about cash grabs like implementing more nitro tiers and adding paid roles to servers (which was broken upon release) that they can't even maintain the basic functionality of their platform.


r/Discord_Bots • • Aug 25 '22

Meta Heroku shutting down free plans

77 Upvotes

For anyone running bots on Heroku's free plans, you might want to check out the announcement they put out today. Heroku will be shutting down free plans starting on November 28, 2022.

https://blog.heroku.com/next-chapter

Starting October 26, 2022, we will begin deleting inactive accounts and associated storage for accounts that have been inactive for over a year. Starting November 28, 2022, we plan to stop offering free product plans and plan to start shutting down free dynos and data services. We will be sending out a series of email communications to affected users.


r/Discord_Bots • • Jul 31 '21

Bot Request [Existing ONLY] Good nsfw bots? NSFW

75 Upvotes

Me and my friend are looking for some nsfw bots that we can use, maybe pje with also some gay commands?


r/Discord_Bots • • Nov 17 '21

Bad Link Protection: 600 domains

68 Upvotes

badlinks = ['appnitro-discord.ru', 'apps-discord.org', 'apps-nitro.com', 'boost-discord.com', 'boosted-nitro.com', 'boostnitro.com', 'christmasdiscord.gifts', 'cliscord-gift.ru', 'cllscordapp.fun', 'cpp-discord.com', 'd.iscord.xyz', 'diccrd.com', 'dicord.gift', 'dicsord-airdrop.com', 'dicsord-airdrop.ru', 'dicsord-app.com', 'dicsord-gift.com', 'dicsord-give.com', 'dicsord-gives.com', 'dicsord-hypesquads.com', 'dicsord-nitro.com', 'dicsord-ticket.com', 'dicsord.gifts', 'dicsord.net', 'dicsord.pw', 'dicsord.ru', 'dicsord.space', 'dicsordapp.co', 'dicsordgift.com', 'dicsordgive.ru', 'dicsordnitro.info', 'dicsordnitro.store', 'dicsords.ru', 'diiscord.gift', 'dilscord.com', 'dilscordl.com', 'dirscod.com', 'dirscod.gift', 'dis.cord.gifts', 'disc0rd.site', 'discapp.info', 'disccrd.gifts', 'discoapps.club', 'discocl.xyz', 'discoclapp.pw', 'discoclapp.xyz', 'discocrd-nitro.com', 'discocrd.com', 'discocrd.gift', 'discocrd.gifts', 'discocrdapp.com', 'discod-nitro.ru', 'discod.art', 'discod.fun', 'discod.gift', 'discod.gifts', 'discod.info', 'discod.tech', 'discodapp.gift', 'discodnitro.info', 'discodnitro.ru', 'discond-nitro.ru', 'discond-njtro.tech', 'discond.gift', 'discond.ru', 'discoord.space', 'discorb-nitro.ru', 'discorb.blog', 'discorb.co', 'discorb.gift', 'discorb.gifts', 'discorb.ru', 'discorcd-gift.com', 'discorcd-nitro.com', 'discorcd.gift', 'discorcd.gifts', 'discorcdapp.com', 'discorcg.xyz', 'discorcl-air.xyz', 'discorcl-app.com', 'discorcl-app.ru', 'discorcl-app.xyz', 'discorcl-boost.ru', 'discorcl-gift.ru', 'discorcl-give.site', 'discorcl-nitro.com', 'discorcl-nitro.ru', 'discorcl-nitro.site', 'discorcl.app', 'discorcl.art', 'discorcl.click', 'discorcl.club', 'discorcl.gift', 'discorcl.gifts', 'discorcl.info', 'discorcl.link', 'discorcl.org', 'discorcl.shop', 'discorcl.site', 'discorclapp.com', 'discorclapp.fun', 'discorclapp.xyz', 'discorclgift.com', 'discorclgift.net.ru', 'discorclgift.xyz', 'discorclgifts.store', 'discorcll.com', 'discorcll.online', 'discorcz-booster.ru', 'discord-accept.com', 'discord-air.fun', 'discord-air.xyz', 'discord-airdop.link', 'discord-airdrop.com', 'discord-airdrop.fun', 'discord-airdrop.info', 'discord-airdrop.me', 'discord-airdrop.pw', 'discord-airnitro.xyz', 'discord-alidrop.me', 'discord-alrdrop.com', 'discord-app.cc', 'discord-app.click', 'discord-app.co', 'discord-app.co.uk', 'discord-app.gifts', 'discord-app.info', 'discord-app.io', 'discord-app.live', 'discord-app.me', 'discord-app.net', 'discord-app.ru', 'discord-app.shop', 'discord-app.top', 'discord-app.uk', 'discord-app.us', 'discord-app.xyz', 'discord-application.com', 'discord-applications.com', 'discord-appnitro.com', 'discord-apps.fun', 'discord-apps.site', 'discord-apps.space', 'discord-apps.xyz', 'discord-boost.xyz', 'discord-bugs.com', 'discord-claim.com', 'discord-claim.ru', 'discord-click.shop', 'discord-control.com', 'discord-controls.com', 'discord-cpp.com', 'discord-develop.com', 'discord-developer.com', 'discord-devs.com', 'discord-drop.gift', 'discord-drop.info', 'discord-drop.xyz', 'discord-drops.ru', 'discord-egift.com', 'discord-event.com', 'discord-event.info', 'discord-faq.com', 'discord-free-nitro.ru', 'discord-free.com', 'discord-free.site', 'discord-freenitro.online', 'discord-freenitro.pw', 'discord-fun.com', 'discord-game.com', 'discord-get.click', 'discord-get.shop', 'discord-gift-nitro.site', 'discord-gift.online', 'discord-gift.shop', 'discord-gift.site', 'discord-gifte.com', 'discord-gifte.site', 'discord-giftef.xyz', 'discord-gifteh.xyz', 'discord-giftes.com', 'discord-gifts.com', 'discord-gifts.me', 'discord-gifts.ru', 'discord-gifts.shop', 'discord-give.com', 'discord-give.net', 'discord-give.org', 'discord-give.ru', 'discord-give.xyz', 'discord-giveaway.com', 'discord-giveaways.ru', 'discord-glft.com', 'discord-glft.ru', 'discord-glft.xyz', 'discord-halloween.com', 'discord-halloween.link', 'discord-halloween.me', 'discord-halloween.ru', 'discord-hallowen.ru', 'discord-help.com', 'discord-helpers.com', 'discord-hse.com', 'discord-hype.com', 'discord-hypes.com', 'discord-hypesquade.com', 'discord-hypesquaders.com', 'discord-hypesquads.com', 'discord-info.com', 'discord-infoapp.xyz', 'discord-information.com', 'discord-information.ru', 'discord-informations.com', 'discord-informations.ru', 'discord-job.com', 'discord-jobs.com', 'discord-mod.com', 'discord-moderation.com', 'discord-moderations.com', 'discord-mods.com', 'discord-netro.ru', 'discord-nilro.ru', 'discord-niltro.com', 'discord-niltro.ru', 'discord-nitro-free.ru', 'discord-nitro.click', 'discord-nitro.club', 'discord-nitro.co', 'discord-nitro.eu', 'discord-nitro.gift', 'discord-nitro.link', 'discord-nitro.net', 'discord-nitro.org', 'discord-nitro.pro', 'discord-nitro.ru', 'discord-nitro.su', 'discord-nitro.tech', 'discord-nitroapp.ru', 'discord-nitroapp.xyz', 'discord-nitrogift.com', 'discord-nitrogift.ru', 'discord-nitros.ru', 'discord-nitrot.xyz', 'discord-nltro.com', 'discord-nltro.ru', 'discord-partner.com', 'discord-partners.com', 'discord-present.ru', 'discord-promo.com', 'discord-promo.info', 'discord-promo.ru', 'discord-promo.xyz', 'discord-promox.com', 'discord-report.com', 'discord-security.com', 'discord-service.com', 'discord-shop.fun', 'discord-spooky.ru', 'discord-staff.com', 'discord-steam.com', 'discord-steam.ru', 'discord-steam.site', 'discord-steams.com', 'discord-stemdrop.me', 'discord-stuff.com', 'discord-sup.com', 'discord-supports.com', 'discord-team.com', 'discord-tech.com', 'discord-tester.com', 'discord-up.ru', 'discord-verification.com', 'discord-verifications.com', 'discord-verify.com', 'discord-verify.ru', 'discord-vetify.com', 'discord.app', 'discord.foundation', 'discord.givaeway.com', 'discord.givaewey.com', 'discord.giveawey.com', 'discord.giveaweys.com', 'discord.link', 'discord.moscow', 'discord.shop', 'discord.voto', 'discord4nitro.com', 'discordaepp.com', 'discordapp.biz', 'discordapp.click', 'discordapp.one', 'discordapp.pw', 'discordapp.store', 'discordapp.su', 'discordapps.gift', 'discordappss.com', 'discordc.gift', 'discordchristmas.gifts', 'discordcommunlty.com', 'discordd.gift', 'discorde.gift', 'discordevents.com', 'discordf.gift', 'discordfrnitro.site', 'discordgift.app', 'discordgift.info', 'discordgift.net.ru', 'discordgift.org', 'discordgift.ru', 'discordgift.site', 'discordgift.xyz', 'discordgifte.com', 'discordgifte.site', 'discordgiftfree.site', 'discordgiftis.ru', 'discordgifts.co.uk', 'discordgifts.com', 'discordgifts.info', 'discordgifts.link', 'discordgifts.me', 'discordgifts.store', 'discordgiftss.com', 'discordgiftz.xyz', 'discordgiveaway.fun', 'discordgivenitro.com', 'discordgivenitro.ru', 'discordglft.com', 'discordglft.ru', 'discordglfts.com', 'discordhalloween.co.uk', 'discordhalloween.com', 'discordhalloween.uk', 'discordi.gift', 'discordj.gift', 'discordjob.com', 'discordl-steam.com', 'discordl.gift', 'discordlapp.fun', 'discordlgift.com', 'discordlgift.ru', 'discordll.gift', 'discordmoderations.com', 'discordn.gift', 'discordnitro.cc', 'discordnitro.click', 'discordnitro.fun', 'discordnitro.info', 'discordnitro.ru', 'discordnitroapp.ru', 'discordnitrogift.ru', 'discordq.com', 'discordqr.com', 'discordrgift.com', 'discordrgift.ru', 'discords-app.com', 'discords-developers.com', 'discords-gift.com', 'discords-gift.ru', 'discords-gifts.ru', 'discords-hypes.com', 'discords-hypesquad.com', 'discords-hypesquads.com', 'discords-moderation.com', 'discords-moderator.com', 'discords-nitro.xyz', 'discords-nitroapp.xyz', 'discords-nitros.fun', 'discords-premium.com', 'discords-premium.site', 'discords-steam.com', 'discords-support.com', 'discords-teams.com', 'discords.ru', 'discords.us', 'discordsgift.com', 'discordsgift.info', 'discordstaff.xyz', 'discordsteam.com', 'discordsteam.ru', 'discordsteams.com', 'discordsub.com', 'discordt.gift', 'discordtotal.com', 'discordu.gift', 'discordup.ru', 'discordxnitro.xyz', 'discorgift.xyz', 'discorid.gift', 'discoril.com', 'discorl.com', 'discorrd.gift', 'discorrd.ru', 'discorrl.com', 'discorsd.gifts', 'discortnitosteam.online', 'discortnitostem.online', 'discourd.info', 'discrod-app.com', 'discrod-app.ru', 'discrod-app.site', 'discrod-apps.ru', 'discrod-gift.com', 'discrod-gift.xyz', 'discrod-glfts.com', 'discrod-nitro.fun', 'discrod-nitro.info', 'discrod-up.ru', 'discrod.gift', 'discrod.gifts', 'discrodapp.ru', 'discrodapp.site', 'discrodnitro.org', 'discrodsteam.ru', 'discrodup.ru', 'discurcd.com', 'diskord.ru', 'disocrd.codes', 'disocrd.gifts', 'disord.codes', 'disord.fun', 'disord.gifts', 'disordapp.codes', 'disordapp.gift', 'disordapp.gifts', 'disordgift.codes', 'disordgifts.com', 'disordglft.com', 'disordnitros.xyz', 'disordsnitro.gifts', 'disrcod.com', 'disrcod.gift', 'disrcod.gifts', 'dissord.gift', 'dizcord.gift', 'dlcsorcl.com', 'dlcsord-airdrop.com', 'dlicord-glfts.site', 'dlicsord.ru', 'dliscord-gift.com', 'dliscord-giveaway.ru', 'dliscord-glft.ru', 'dliscord-nitro.com', 'dliscord.com', 'dliscord.us', 'dliscordl.com', 'dliscordnltro.com', 'dliscords.com', 'dlscard.ru', 'dlsccrd.com', 'dlscocl.xyz', 'dlscocrd.club', 'dlscocrd.com', 'dlscocrdapp.com', 'dlscorcl.gift', 'dlscorcl.info', 'dlscorcl.pw', 'dlscorcl.ru', 'dlscorclapp.fun', 'dlscord-alirdrop.com', 'dlscord-app.com', 'dlscord-app.info', 'dlscord-app.net', 'dlscord-app.xyz', 'dlscord-apps.com', 'dlscord-boost.fun', 'dlscord-claim.com', 'dlscord-game.com', 'dlscord-gift.com', 'dlscord-gifts.com', 'dlscord-glft.pw', 'dlscord-halloween.ru', 'dlscord-hypesquad.com', 'dlscord-inventory.fun', 'dlscord-nitro.click', 'dlscord-nitro.club', 'dlscord-nitro.fun', 'dlscord-nitro.info', 'dlscord-nitro.link', 'dlscord-nitro.ru', 'dlscord-nitro.space', 'dlscord-nitro.store', 'dlscord-nltro.com', 'dlscord-nltro.ru', 'dlscord-nltro.xyz', 'dlscord-promo.com', 'dlscord-promo.xyz', 'dlscord-steam.com', 'dlscord-stime-2021.ru', 'dlscord-support.com', 'dlscord.app', 'dlscord.cc', 'dlscord.cloud', 'dlscord.co.uk', 'dlscord.gg', 'dlscord.gifts', 'dlscord.help', 'dlscord.in', 'dlscord.info', 'dlscord.ink', 'dlscord.link', 'dlscord.net', 'dlscord.one', 'dlscord.online', 'dlscord.org', 'dlscord.press', 'dlscord.pro', 'dlscord.shop', 'dlscord.space', 'dlscord.store', 'dlscord.support', 'dlscord.tech', 'dlscord.tips', 'dlscord.wiki', 'dlscord.work', 'dlscord.world', 'dlscordapp.codes', 'dlscordapp.fun', 'dlscordapp.info', 'dlscordapp.ru', 'dlscordapps.com', 'dlscordd.ru', 'dlscordgift.com', 'dlscordgived.xyz', 'dlscordglft.xyz', 'dlscordniltro.com', 'dlscordnitro.com', 'dlscordnitro.info', 'dlscordnitro.ru', 'dlscordnitro.store', 'dlscordnitros.gifts', 'dlscordnltro.ru', 'dlscordsglfts.xyz', 'dlscordsteam.com', 'dlscorldnitro.store', 'dlscourd.info', 'dlscrod-app.xyz', 'dlscrod.ru', 'dlscrodapp.ru', 'ds-nitro.com', 'dscord.gifts', 'dsicord.gift', 'event-discord.com', 'events-discord.com', 'free-dislcordnitrlos.ru', 'free-niltross.ru', 'free-nitlrols.ru', 'free-nitlross.ru', 'free-nitroi.ru', 'free-nitroos.ru', 'free-nitros.ru', 'free-nitross.ru', 'freediscrodnitro.org', 'freediskord-nitro.xyz', 'freegiftcards.co', 'freenitro.ru', 'freenitroi.ru', 'freenitrol.ru', 'freenitros.com', 'freenitros.ru', 'freenltro.ru', 'gave-nitro.com', 'gift-discord.shop', 'gift-nitro.store', 'giftdiscord.info', 'glets-nitro.com', 'glft-discord.com', 'hallowen-nitro.com', 'jope-nitro.com', 'ldiscord.gift', 'nitro-app-store.com', 'nitro-app.com', 'nitro-app.fun', 'nitro-discord.info', 'nitro-discord.me', 'nitro-discord.org', 'nitro-discord.ru', 'nitro-discordapp.com', 'nitro-discords.com', 'nitro-drop.com', 'nitro-gift.ru', 'nitro-gift.space', 'nitro-gift.store', 'nitro-up.com', 'nitroairdrop.com', 'nitroappstore.com', 'nitrochallange.com', 'nitrodlscordl.xyz', 'nitrofrees.ru', 'nitroos-frieie.ru', 'nltro.site', 'official-nitro.com', 'official-nitro.fun', 'premium-discord.com', 'premium-discords.com', 'promo-discord.com', 'seed-nitro.com', 'steam-discord.com', 'steam-discords.com', 'steam-dlscord.com', 'steam-free-nitro.ru', 'steam-nitro.ru', 'steam-nitros.com', 'steam-nitros.ru', 'steam-nltro.com', 'steam-nltro.ru', 'steam-nltros.ru', 'steamcommunity-nitro.ru', 'steamcommunity-nitrogeneral.ru', 'steamdiscord.com', 'steamdiscord.ru', 'steamdiscords.com', 'steamdiscrod.ru', 'steamdlscord.com', 'steamdlscords.com', 'steamgivenitro.com', 'steamnitro.com', 'steamnitros.com', 'steamnitros.ru', 'steamnltro.com', 'steamnltros.com', 'steamnltros.ru', 'steams-discord.ru', 'steamsdiscord.com', 'steamsnitro.ru', 'store-discord.com', 'up-discord.ru', 'verification-discord.com', 'verifications-discord.com', 'verify-discord.com', 'xesa-nitro.com', 'xess-nitro.com', 'xpromo-discord.com', 'yummy-nitro.com']
@bot.event
async def on_message(message):
if message.author.id in botid:
return
  mcont = message.content
if checkx(mcont, badlinks):
      extractor = URLExtract()
      urls = extractor.find_urls(mcont)
      print(urls[0])
      destination = requests.get(urls[0]) 
if 'discord.com' not in destination.url:
await message.delete()
await message.channel.send("Your message was deleted because it contains links in our filter!")
        guild = bot.get_guild(901444128020234260)
await message.channel.send("Invalid Gift Detected!")
await message.channel.send(f"User {message.author} Muted for illegal link! | <@&901460889797001259>")
await message.delete()
        channel = bot.get_channel(906977773950746644)
await channel.send(f"Invalid link detected, please investigate {message.author} who sent BAD URL in chat!")
        role = discord.utils.get(guild.roles, name='Muted')
        f = open("delres/badlinks.txt", 'a')
        thecont1 = str(message.author)
        f.write(thecont1 + ' posted bad link, message: '+mcont +'\n\n')
        f.close()
        member = message.author
await member.add_roles(role)

This will mute the user until the user is unmuted, giving you time to investigate the issue: https://i.imgur.com/dnu8rhu.png

This will also send a channel message to your admins so they know what happened: https://i.imgur.com/VoS444Q.png

You can add @ mention or whatever you please, enjoy! if you don't see a link on here let me know and i will edit the message!


r/Discord_Bots • • Jan 09 '21

I made a Python library for Slash Commands

67 Upvotes

Hey there,

as you probably already know, Discord has recently published it's public developer beta for the new Interactions API, which has for now only one feature that's called Slash Commands.

Now, since

  1. I am very exited about the new Interactions,

  2. I plan on using them in a somewhat big bot project of mine, and

  3. there aren't really many libraries available (yet) that support Interactions

I naturally decided to make my own library.

It's still heavily in development, of course, but I worked really hard on it over the past couple days and it already has some decent features, so I wanted to share it with you guys. I'd also love to get some feedback!

Okay, so without further ado: I present to you discord-interactions.py !


r/Discord_Bots • • May 02 '22

Showoff Sunday Here is the closest recreation of r/Place as a discord bot.

65 Upvotes

r/Discord_Bots • • Apr 28 '20

Tutorial Discordpy Tutorial series, building a complex bot with many frequently requested features

65 Upvotes

I have started working on a video course for creating Discord bots with discordpy.

I hope this post falls under the section "Tutorial posts are welcome".

The course covers the following content:

► Installation and setup of python3 on Mac and Windows

► Installing and using PIP and virtualenv to manage python libraries for the project

► Looking at three different ways of implementing a python discord bot

► Working with the command extension of discordpy

► Working with Cogs in python to easily handle commands and permissions in discordpy

► Implementing basic commands with discordpy

► Requesting external APIs to display images in discord

► Working with permissions and roles in discordpy to manage users

► Reading from the local file system to display text in discord

► Creating simple Games in discord with python

► Working on an experience / rank system for your discord users

► Creating a token / money system that users in discord can spend

► Deploying the discord bot via docker

► and many more features

We are currently in episode 27 with the following content already covered:

Admin Module

  • Status

  • Load Cog

  • Unload Cog

  • Reload Cog

Moderation

  • Kick

  • Ban

  • Unban

Games

  • Rock Paper Scissors Single Player Game

  • Hangman Single Player Game

  • Guess a word Multiplayer Game

Images

  • Cat random picture

  • Dog random picture

  • Fox random picture

  • Random Subreddit Image

NSFW

  • Insult with yo momma joke from local file

Gamble

  • Coin flip heads or tails

  • Roll a random number between 1 and 100

  • Dice random number between 1 and 6

Basic

  • owo text to owo speech

  • invite create invite link via the bot

  • poke other members on the server

Generally the course is aimed at people with basic python knowledge. I will continue working on the course and usually upload 3 or more videos at once, so just because the channel isn't uploading everyday a video, does not mean its dead. But the current amount of episodes should keep you busy for a few hours if you wanted to follow along!

All videos are organised in a playlist: https://www.youtube.com/playlist?list=PLESMQx4LeD3NmTZ8D1qwQwwSp67kznl-K

I don't think it makes too much sense to watch the videos independently, but for the basic commands it would probably work.

Any sort of feedback is welcome. Also requests, but they will probably be postponed until we have finished a section. The current section games will have about another 2 videos on the Guess a Word game, and then we have a few episodes on the lottery system. I screwed my mic for episode 21-24 though, will reupload once the course is done, it's not too bad, but you will see for yourself. Probably we have another 30 episodes though!

PS: The code will be available via github as well, however, that is going to take another couple of days...