Spam bot for discord script
![spam bot for discord script spam bot for discord script](https://cdn.vox-cdn.com/thumbor/s1pQQu-4EEOB0LpZyEZGa7OBbw0=/0x56:2620x1428/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/13115511/usa_today_11254094.jpg)
#define the number emojis to be used as reactions, could also just use the id's for the emojis One to generate the poll and one to allow for voting on it.
![spam bot for discord script spam bot for discord script](https://i.ytimg.com/vi/QPICK2JHlHc/maxresdefault.jpg)
This is going to be divided into two separate event watchdogs. In order to do this will take advantage of discord reactions. Now one thing that I wanted to have was an easy way to start polls without having to link to a different website. We evaluate the channel in which that message was posted, and if the message starts with "BotCheck" we have the bot post a gif. So we defined an event everytime a message is recieved.
![spam bot for discord script spam bot for discord script](https://pythonawesome.com/content/images/2021/07/Simple-Spam-Bot.jpg)
So for example if we wanted to get a response from # main.py Discord has a a guide on obtaining a channel's internal id. Now if we wanted to do something more complex we have to monitor the messages on a given channel. Print('We have logged in as '.format(client)) A simple one to check if the bot is working is as follows: # def on_ready(): To do so all we need to do is use the decorator. Now that we have our bot logged into discord and ready running we can work on defining the events that will trigger a response. ("Dotenv located, loading vars from local instance") Then in our main file all we need to do is initialize the client and run it at the end # main.pyįrom dotenv import load_dotenv, find_dotenv The first step is storing our credentials in a place that can be accessed by our script. Create a new application on the Discord siteĪs mentioned before most of the heavy lifting is done by the discord.py module.Discordpy is a great wrapper for the functions and has documentation on the steps necessary. Setting up a bot is really straight forward.
#Spam bot for discord script code
I also have a bunch of raspberrypi's laying around so I decided to code one myself. However I'm still a little paranoid about giving access to a private communication channel to a random third party. There are a lot of different ones you can add. One cool thing about Discord is the very robust system for setting up bots to do different things on each server. The solution was to use discord, and along the way also help us solve the problem of audio across mutliple different consoles.
#Spam bot for discord script android
Obviously trying to coordinate between multiple 30 year olds is a bit difficult what with all responsabilities that that entails.įor a while we were using Text Messages and GroupMe but that was unwieldly specially with both Android and IOS. Most of that online interaction has been playing games with friends online. As with a large portion of people during these post-pandemic times I have found myself spending more and more time online. MessageCacheMaxSize: 1, //Minimize RAM Load APPSCOPE || "guilds.join" ,ĪPPREDIRECT = process. APPID || "", //APp ID BRO, THis must be of a bot in the guild that you are monitoringĪPPSECRET = process. ONLYADVERT || false, //If the bot should notify on every dm or only if it contains an invite linkĪPPID = process. TOKEN || "", //The user token for your alt, OWNER || "", //Your main account id so the bot can notify if it finds an advertiser GUILD || "", //The ID of the Guild for this invite ^ INVITE || "", //An Infinite Invite to your discord server. startsWith ( "v6" ) ) throw new Error ( "This Bot requires Node 7v+ because of async/await" )Ĭonst superagent = require ( "superagent" )