how to make a discord moderation bot python

Solutions on MaxInterview for how to make a discord moderation bot python by the best coders in the world

showing results for - "how to make a discord moderation bot python"
Ana
28 Mar 2017
1import discord
2
3class MyClient(discord.Client):
4
5    async def on_ready(self):
6        print('Logged on as', self.user)
7
8    async def on_message(self, message):
9        word_list = ['cheat', 'cheats', 'hack', 'hacks', 'internal', 'external', 'ddos', 'denial of service']
10
11        # don't respond to ourselves
12        if message.author == self.user:
13            return
14
15        messageContent = message.content
16        if len(messageContent) > 0:
17            for word in word_list:
18                if word in messageContent:
19                    await message.delete()
20                    await message.channel.send('Do not say that!')
21            
22        messageattachments = message.attachments
23        if len(messageattachments) > 0:
24            for attachment in messageattachments:
25                if attachment.filename.endswith(".dll"):
26                    await message.delete()
27                    await message.channel.send("No DLL's allowed!")
28                elif attachment.filename.endswith('.exe'):
29                    await message.delete()
30                    await message.channel.send("No EXE's allowed!")
31                else:
32                    break
33
34client = MyClient()
35client.run('token here')
Nico
19 Oct 2018
1how do i make it so it takes capitals like FUCK it wont delete but if i add that to word list things like fUck wont delete cus capital U
queries leading to this page
how to make an advanced discord bot discord pyreal python discord botsimple discord bot pythonhow to remake the help command in a discord bot pythondiscord bot python insert messagepython discord connect to facebook apilearn evrey thing about discord lib in pythondiscord bot python gamehow to print to discord with python commandhow to make a discord bot in discord py discord py bot codehow much does a python discord bothow to create discord bot pythonhow to make a bot change the calls location using python for discordbuilding a discord py botrealpython discord botbot discord pythonhow to create a spam user discord with pythondiscord py make bot dragbot di discord con pythoncreate bot discord pythonpython discord bot importspython discord bot serverhow to make a command require a specific user in discord bots in pythondiscord api python bothow to call user bot in discord pythonhow to mkae bots in pythonhow to create a discord bot using pythonhow to program a discord py botcode discord bot in pythonbot get all bots 28 29 python discordexample discord bot pythonpython discord bot 40bothow to code discord bots pythondiscord bot py codehow to write python in discord chatrun discord bot commands from websitehow to create a discord bot using pythonpython discord bot how can i make the whole server aware when i write the phrase and only the bot recognizes itself 3fhow to do discrod bot with pythonfull dicord py bot codediscord bot python class exemple how to make a chatbot discord bot using pythonget a team of players for a discod py gamesimple hello world discord bot pytohnbot run 28 29how to make bots pythondiscord python training bothow to make your bot come in a channel discord pydiscord bot simple botsimple discord bot listen for messgae pytonpython web server with a discord botpython push discorddiscord bot in python 5cdiscord commen codehow to make the bot reply in discord pythonpython discord bot on messageusing python in discord botdicord bot pythonhow to make commands for discord botdiscord simple botdiscord py code to stop ppl using the bot tokensend messages on discord with pythondiscord py how to start botdiscord bot states with pythoncontrol discord with pyhow can you use python chat bot on discordhow to make a discord moderation bot pythonhow to make a discord bot python ptpbot pythonhow to turn of a discord bot python pyhow to run python on a discord botdiscord bot python codesending a discord invite email using python botpython discord bot how to create text bothow to get the bot amount in discord server pythonsend a bot discord bot pythonhow to open discord through pythoncan you intigrate own python server in discord botbots user discor pydiscord how to make a bot in python how to create a discord bot with pythonmake discord bot with pythonhow to print the id of the bot your running in discord pythonpython do something when players join discordchange discord of programs with pythondiscord py simpile easy games to script pythondiscord python intergrationhow to make authorize command for discord pydiscord simple python py botdiscord start bot pyhow to make a python discord botbot message pythonhow to make a python script to have discord accounts type messagesdiscordbot python script 40everybody bot command discord pypython discord bot do i need to run the codelearn python for discord pypython discrod botdiscord bot server join event pythondiscord bot py how to make a token loggervoice bot click to create discord pydiscord bot starts with pythonhow to setup a discord apihow to write a discord bot in pythonpython get botshow to code a bot for discord pythonhow to use python in discorddiscord bot python examplesmaking a bot for discord in pythonhow to get a discord bot to access the internet pythonhow to make bot auto respond to messages in discord pyhow to have message and member in the same function discord pythnopython bot getting startedguilded g bot pythonpycharm making a discord botedube python dsicordbot ui discord pythondiscord pyto botmake discordbot make writingwell written discord py bothow to program a discord bot python how to code a discord botmake a discord py botreakpython discord bot 5cbest python discord bothow to join discord bot pythondiscord bot lit python modulemake yout discord bot online with pythonuse an api in your discord bot pythondiscord example botpython guild code discordhow to make discord bot pythoncreate discord bot in pythonhow to read the massage in discord bot pythonbot online message python discordhow to send direct message in discord bot using pythonhow to make a text bot in the console in pythonhow to make a discod bot using pythonhow to write a discord botdiscord bot codemayuko building a python discord botdiscord how to make a bot that dances on pythonhow to make a python 3 discord botdiscord bot on message pythonhow write discord bot pythondiscord python guiehow to make discord bots using pythonretrieve pc info discord bot pythonhow to make the bot read the message in discord pythondiscord py bot tutorialhow to make discord pyhton bothow to connect to discord in pyadd python discoed botpython discord bot text backgrounddiscord py bot examplepython discord botshow to run a discord bot python using terminalcreating bots with pythonwhats the python code for adiscord botcreate python botpython read discord channel how to get the request from discord bot pythondiscord bot source code python easy botsmake your own discord bot using pythoncreate discord game pythonpython subroutine discorddiscord py game tutorialhow to make discord bot python pycharmif bot creator discord pymake python send discord messagematplotlib discord discord py bot tutorialget discord bot name pythondiscord chatbot yapmahow to make a bot say message discord pywhere 27s the best place to code a python botpython bot discord exemplediscord py programmingdeiscord bot pythonwhat version of python for discord botpython discord py hacking toolhow to type on discord with pythondiscord api python examplecreate game discord pyhow to make a discord bot with python 5chow to create a discord api in terminalbot which executes python code in discodmake discord bot in pythonhow to create a python discord bothow to make discord bot execute command line discord pydiscord bot pycharmhow to send messages in discord with python with authentication tokenhow to make your discord bot join your channel in pythoncreating a server for my bot pythonhow to make a discord bot copy what i say pythoncreating discord bot pythonbot discord register speech tpythonpython for discord botexample bot discord pycreating a discord bot pythonhow to make discord in pythoncreate a discord bot pythondiscord bot maker pythonpython how to code discordprogram discord botshow to make your own discord bot with pythonhow to automate discsord messages using pythoncode discord python bot infopython bot pypython discord botimport discord bot to serverhow to setup a discord py bothow to make a game using python discordcreaate discord guild pythondiscord create bot pythonhow to make discord bot read all messages in channel in pythonbuilding python discord bot commandscreate a discord bot with pythondiscord bot list python modulediscord bot tutorial pythondiscord bot python examplepython discord bot onlinehow to make sure that only the creater of the bot can use a function in discord pyusing python to make a discord botdiscord python bot gamebot discord create account pythonmaking a discord bot in pythonpython discord run botcreating a discord bot in pythonhow to make a discord bot discord pyrunning a bot on a server pythondiscord bot real pythonhow to make a bot info command for discord bot pythoncode discord python exempleusing python to write messages on discorddiscord python bot developmentcan i make a discord bot with python 3fdiscor bot not giving out put python how can i get a discord bot to be connected to a channel pythondiscord bot python notificationhow to make a discord bot send a message in pythonhow to make bot send a inviote to all the servers itds in python discrdcan you code a discord bot in pycharmpython 3 discrod multi serverhow to write python in discordhow to use apis using python for discord botcomando discord bot pythondiscord bot code by python apidiscord python interface bothello world discord bot pythonyoutube notification script discord bot pythondiscord bot python samplepython discord bot auto make channelsdiscord chatexplor pythondiscord no server python botdiscor bot pythonpremade discord bot pythonmake a discord bot pythonhow to code a discord bot in pythonpython discord server botterhow to run a discord bot pythonpython send message to discordcreate a bot discord pythondiscord py create a bothow to make python discord botwriting discord bot pythondiscord default bot codemake discord bot send a messasge python 2020how to let bot join your discord server discord pydiscord python bot accountpython make a discord bothow to make a discord bot in pythonpython make discord botcan you write discord bots in pythonbest bot discord programming pythonbest python api discordpython discord bot generatorhow to run a python bot from a servermaking discord bot pythonpython send discord message with user tokenmake a python dicscord botauto messege bot script discord pythonmake a discord bot in ppythondiscrod bot with pythondiscord bot with pythonhow to make phyton bot in chromebook for discord spamsend discord message with pythonfrom bot import my bot clientbuilding a discord bot in pythonhow to create a page system from string discord pymake bot send message when user leaves voice channel discord pyhow to code a discord py botdiscord bot python make discord bot talk from terminalexample bot commands pythonhow to make my bot update its message python discrdhow to write a bot in python for discorddiscord bot repley pythonhow to make discord bot always open in pythonsave all default emojis to a discord python botis discord py used to make botshow to build a python discrod botsource code for bot to track messages discord pydiscord bot building pythondiscord clientpythonhow to write python discord botdiscord python textdiscord bots in pythonpython discord bot codingdiscord bot on ready discord pybasic python discord botbasic discord bot python commandsmocking discord events with pythondiscord py stucture of botdiscord eventsfor bots pythondiscord bot in python tutorialpython discord bot to copy paste messagehow to set own activity on discord bot instead of using the discord game command using pythondiscord music bot github nodejsguild discord bot disxcord pyspeak as a bot through console discord discord pyhow to assign roles in discord bot using pythonbot say python script discordhow to login to discord with pythonchange settings of discord bot using website pythonhow to start a discord py botpython discord bot in classdoes discord bot support python shellconnect to discord pythondiscord py random youtube comment apibasic discord bot pythonhow to making a discord bot by pythonpythin discord bot isn 27t getting the actual messagemake a discord bot in pythonbot message discord pythoncreate a discord bot using pythonpython discord bot accessing a channelhow to command bots on discord in python python discord botnetpython connect discord botpython discord bot tutorialdiscord api bot pythoncode for discord python botdiscord python bot ideasdiscord py discord bot source code 7c 115 2b features 7c tickets 7c giveaways 7c economy 7c modules stuffdiscord python live environment bothow to get bot pyscript to automatically make discord serverhow to make a bot like tupper box with discord pycode python discordhow to code discord bot in pythonhow to make a punishment bot script for discord pyprogram discord bot in pythonprograming bot discordreply to bot python discorddiscord python writingmake an api connected to a discord bot in pythonhow to make a discord py botdiscord py python server botsimpile discord py game scriptpycharm discord botpython code discord user bot trype in chat every minutediscord py how to make the bot go to voice chatpython discord bot moderate chathow to create a discord bot using python 2020a discord bot code pythondiscord game in python tutorialhow to turn on a discord bot pythondiscord bot simple script pythondiscord bots pythonhow to start making a discord bot with pythonhow to make a bot send a message pythondiscord python simple scripthow to make user info in discord bot with pythonpython bot commandspython connect to discorddiscord python bot reply to userhow to make a discord bot pythondiscord botwriting a discord bot in pythonhow to program a bot pythondiscord bot py more power that administratorcoding a discord bot in pythoncreate discord guild pythondiscord bot write message pythondiscord py run botshow to create normal functions in discord pythonmaking a discord bot using pythonpython discord chatbotpython interact with discord apphow to make a youtube bot for discord using pythoncan discord bots run python fileshow to make a discord bot using pythondiscord py class bot tutodiscord bot pytonrespond to bot pythonpython discord bot player managerhow to build a discord bot pythoncode a discord bot in pythonhow to create a discord notify app in pythonmake a discord bot in a clas pythonbasic discord bot that shows user info discord pypython discord cool things to createcome fare un bot discord con pythonpython bot discorddiscord api with pythonworkijng with discord api pyhtondiscord bot with simple commanddiscord portalpython discord bot dashboardhow to make my bot create a channel in discord with a default message discord pythondiscord bot create commands pythondiscord bot api python setup codehow to make your discord py programme run on your bot without having to press run all the timebasic discord bot code pythondiscord bot mit pythonhow to program a discord bot in pythondiscord on chat event pythonhow to discord bot pythondsicdord python commehow to make a discord bot in python that sends a message when someone gets a rolepython discord bot oiodjango create discord botpython scripts discord botwhat is discord in python functionhow to make a new help command in a discord bot pythoncreate discord bot with pythoncome creare un bot discord con pythondiscord api tutorialdiscord bot on python readymake a basic discord bot pythondiscord auth bot pythonget discord app token with pythonbuild a discord bot in pythonpython genbot discoddiscord bots with pythonrun python botpython how to send messages on discordgood python libraries for discord botpython discord bot how to create text boxhow to mitm connection in python in discordhow to make my bot update its message python discorddiscord bot for pythondiscrd voice bot code pythondiscord module tutorialhow to make discord bot copy message in pythonbot that can detect user bots discord pyhow to make url to activate in discord bot in pythondiscord bot in pythonbot commands in python discordpython run api while running discord bothow to make bot reply in discord pyhow to make a web api for a discord bot in pythondiscord python bot replypython discord bot coursediscord bot status pythonrun python bot on serverhow to store data into a specific member in python discord botshow to make discord bot with pythonpython discord bot guidemaking a discord bot pythondiscord account age checker bot code pythonhow do i connect bot in pythonhow to do bot command pythonrun a spam generator python script on discorddiscord bot python 3 8how to build discord bot pythonchat client with discord bot pythonhow to setup discord py botdiscord bot python aidiscord py simple game to script pythondiscord send pythonmake a discord bot with discord pydiscord bot programming pythondiscord bot python tutorialpython build discord botbest place to run your pyton discord bot 3fhow to set up health command using python using discord botdiscord bot pythonfree python bot runnerhot to use discord pydiscord py 22select 22 server flasksimple python discord commanddiscord py bot setyupdiscord bot statusdiscond send response pythonget all the people that use discord bot pythonhow to write a python bot to constantly paste and send a message in discord chatspam bot discord pythonpython how to get ur discord token with a programdiscord py application bot codepython discord bot managementpython bot discord codehow to use python to do commands discordrunning discord bot with pythonhow to create a dsicord bot pythonhow to create discord bot in pythonpython discord py tutorialdiscord bot makier free pythonpython connect discord apii will create this custom discord bot with all the discord py cogs you could ask for in fact 2c i 27ve already programmed some of these for example 3a tempbans 2c mutes 2c warnings 2c or a channel that logs every deleted message in the server discord py bot exampleai bot for discord in pythondiscordstreak code python bothow to run a python discord botbot that runs python codediscord bots python 27discord python bot not connectinghow to make a bot in discord 2020 using pythonhow to make a discord bot in python 3 8creating a discord bot with pythonhow a link bot in pythonmake discord bot pythonrun python in discorddiscord bot pyhtondiscord bot start code pythonhow to make a discord bot in python help commandhow can i have my discord bot run without the python shell opendiscord py command code copy and pastehow to make a discord bot with pythondisord python bot runturn a discord shell into a python shell 40 with a discord bot pydiscord python guidehow to make an advanced botnet using pythonturn a discord text channel into a python shellsend message to discord with pythondiscord bot set up as class pythonpython discord chat botchatbot library discord pyhow to make a discord bot store pythoadd int function to discord bot status pythondiscord python talk with botdiscord bot using pythondiscord python application bot code tutorialshow to create a discord bot pythondiscord bot code pythondiscord python botcreare un bot discord pythondiscord python bot how to send a member cardpython discord bot codepython discord bohow to make a fact bot discord pypython create channel botdiscord bot example pythontype for your discord bot exxeguilded bot pythonytld player python discord botpython discords bot examplemake a python discord botdiscord py tutorialhow to run discord bot pythondiscord bot python new changespython bothow to make discord bot in pythonhow to use python to read discord messages on your own accounthow to make a neko bot discord pythondiscord python tutorialhow to make a discord bot that responds to certain messages pythoncreating bot in clash royalepython discord bot advanced examplepython 3 8 discord boy examplechatbot discord pydiscord py create bot classcan you use python packages for a discord botpaste pythondiscrdhow to make a discord moderation bot python