- Home
- Platforms
- Services
- Our Story
- Join Us
- Solutions
- About
- Resources
- Connect Now
Get more updates and further details about your project right in your mailbox.
The best time to establish protocols with your clients is when you onboard them.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.
An Automated software application that is programmed to do tasks when triggered. They usually do repetitive tasks and they can complete them much faster than humans.
Different types of bots exist on the internet. These bots serve their purpose they are created for. They could be
From Discord itself:
“Discord is a free voice, video, and text chat app that’s used by tens of millions of people ages 13+ to talk and hang out with their communities and friends.
People use Discord daily to talk about many things, ranging from art projects and family trips to homework. It’s a home for communities of any size, but it’s most widely used by small and active groups of people who talk regularly.”
In short, Players, streamers, and developers use Discord to discuss games, answer questions, chat while they play, and much more.
One of discord’s main attractions is the inclusion of “bots” (In our case, chatbots) which respond based on “trigger” words given by the user (You ).
Bots can either reply to you with data (showing your favorite actor’s career history), reply to your message with a set message (Replying “General Kenobi” to your “Hello there” messages) or even moderate your “server” when things get ugly..
Bots are a great way to pass time in Discord on a deserted Sunday evening when all your friends are on a break. They can also be informative and educational when you interact with the right bot.4
Setting up your discord account is required in order to create a bot and integrate it in your server.
In the Discord sense, a bot needs an account too.
Time to create the bot account.
In the side panel, move over to the Bot panel where you will “Add Bot” as a bot user. It asks for confirmation because this action can not be undone.
The token is always hidden. In order to view/copy your token, click on the “Reset Token” button, like it says, the token can only be viewed once. So make sure you copy the token right away, otherwise it will be gone forever and you’ll have to reset the token again.
Time to create a sandbox server to play with your bot. A server is a group of messaging channels where users can talk to each other about anything they like.
Well, anything actually, that’s the neat part, there are different bots and to give a small glimpse of its powers, there are bots that
To start off, let’s make an 8 ball bot which gives you a reply whenever you ask a question to it.
Now that the Bot user has been created, now it’s time to invite them to your server.
Now it’s time to get your hands dirty with some coding. Install the discord library from your language of choice. This example is built on Python 3.9.
This would install discord.py and its dependencies.
Dotenv package helps in retrieving data from “.env” file which is where you hold all your important secret information, in our case, the bot’s token.
Create a new file called “.env” and save your DISCORD_TOKEN and DISCORD_SERVER in it
The whole program would look like this if everything went smoothly.
“Well we’ve seen the code, how does it work though?”
All you need is to ask your question, (P.S, it’ll give you a favorable answer if you are courteous)
I did it! Now how do I show off this bot to others?
After a hard day’s work, it’s time to look back at your achievements.
To summarize, we have learnt
There’s still a lot of information that has not been mentioned for the purpose of keeping this article to the point. That’s up to you and your curious mind to discover the potential of the bot you’re looking to create.