Set up a reddit video bot
Note: The name for your application is independent from the name of the bot, and the bot doesn’t have to have the same name as the application. Then click Create to create the application. Discord will ask you to enter a name for your new application. Here developers can create Discord applications including Discord bots. In order to register a bot on the Discord platform, use the Discord application dashboard. In this step, you’ll use the Discord developers graphical user interface (GUI) to set up a Discord bot and get the bot’s token, which you will pass into your program.
#Set up a reddit video bot how to
To install this on macOS or Ubuntu 20.04, follow the steps in How to Install Node.js and Create a Local Development Environment on macOS or the Installing Node.js with Apt Using a NodeSource PPA section of How To Install Node.js on Ubuntu 20.04.Īny text editor of your choice, such as Visual Studio Code, Atom, Sublime, or nano.Ī free Discord account with a verified email account and a free Discord server you will use to test your Discord bot. Node.js installed on your development machine. Prerequisitesīefore you get started, you will need the following: You’ll set up a profile for a Discord bot, get authentication tokens for the bot, and program the bot with the ability to process commands with arguments from users.
In this tutorial, you will build a Discord bot from scratch, using Node.js and the Discord.js library, which allows users to directly interact with the Discord API. Learning how to create Discord bots allows you to implement many possibilities, which thousands of people could interact with every day. For example, the utility bot Dyno serves millions of guilds and contains useful features such as spam protection, a music player, and other utility functions. This allows developers to craft powerful bots that include advanced, complex features like moderation tools or even games. Bots can perform various actions such as sending messages to servers, DM-ing users, moderating servers, and playing audio in voice chats. Discord also provides an extensive API that developers can use to build powerful Discord bots. Introductionĭiscord is a chat application that allows millions of users across the globe to message and voice chat online in communities called guilds or servers. Any contributions which improve or fix the project will be accepted as long as they don't deviate too much from the project objectives.The author selected the Free and Open Source Fund to receive a donation as part of the Write for DOnations program. Just open a Pull Request to fix any of the project issues or any improvement you have percieved on your own. Since this is a tiny project we don't have strict rules about contributions. You should be good using these guides (tested on Ubuntu with success and on Debian without success) If having a codec problem (like "couldn't find codec for id 27") you may need to compile ffmpeg and opencv by yourself. More specifically it may be hard to install required codecs. In Linux it may be a bit harder to set the enviorenment properly. Start the project python main.py Note about Linux systems Python -m pip install -r ace-attorney-reddit-bot/requirements.txtĬopy keys-dummy.json into keys.json and fill the required settings with the access keys you should've obtained from Twitter's Developer portal
Python -m pip install -r requirements.txt