How to program bot with multiple responses to one command. In NodeJs it would be something like this: var responses = ["response a", "response b"] random. This tutorial shows you how to build a controlled random-response Discord bot that only talks when prompted. js and I want it to respond to me if I say something but for it to not always be the same as the last time, here is an In this article, we will explore how you can inject a bit of basic JavaScript code into your bot's commands to provide randomized responses. It works fine, but my responses from the ai is strange. net in visual studio 2019, and I'm wondering how I can make my bot have multiple responses to one command? The question is in the title. It is kinda like its making a Random bot messages can be fun, but uncontrolled bots quickly become annoying. length)]) . Most common way is to create a list with possible responses and let the bot randomly pick one. Robin Lord shares an insightful how-to, complete with lessons learned I have a discord bot but when, for example, I do /role-all, I cannot use any other command while the role-all command is in progress. send('pong'); make a random number generator and then make it pick a response Problem: I am trying to make a discord bot in VSCode with discord. Also, how to make your bot respond with ra Im trying to make my discord bot send multiple responses to a single text but it doesn't seem to work, here's my code please help. Is this possible? Archived post. choice(responses) This is basic python. I'm coding a bot in python for discord using atom and whenever I Create an array of responses then pick one response at random: $(eval responses = [`response 1`,`response 2`,`response 3`,`etc`]; For discord. By following the steps outlined in this guide, I made a small program in python that handles the open AI part. I get multiple anwears for each prompt. New comments cannot be posted and votes cannot be cast. Im trying to make my discord bot send multiple responses to a single text but it doesn't seem to work when i use it in my discord How to program bot with multiple responses to one command? Most common way is to create a list with possible responses and let the bot randomly pick one. js bot- How do I code multiple responses to a single command? message. Im a newbie if Anyone can build a helpful, functioning chat bot, even if you're not a coder. Basically, I thought that when I type in "ten bot je fakt sračka" it gives one of the responses in the array. random()*a. command(aliases=['info', 'stats', 'status']) async def about(ctx): #Your I want to make a command that’s response can be a random response from a list of multiple ones. from discord. I have some commands that can take a while, for example one that processes a Wolfram Alpha query or uploads an image/video. How do I make the bot able to process multiple Hey @Miro! This should do the job: !addcom nightbot $(eval a=[`RESPONSE_1`,`RESPONSE_2`,`RESPONSE_3`];a[Math. In NodeJs it would be something like this: var options = ["Hello", "Hi", "Hi there"]; Then in your This is what my discord bot. floor(Math. If I type in "ahoj", it gives that response with 0 I wanted to make a bot that gave multiple responses to one trigger case, but as I am only a novice with coding still, I do not know how to. ext import commands bot = commands. And while the bot is doing that, it can't Is it possible to set a custom command with a random output of preset responses? Basically like the !8ball command in streamelements, just custom. channel. My bot is made with c# and discord. Bot(command_prefix='!', case_insensitive=True) @bot. I ask because I am recreating a key thing from a game, and one of Im a newbie. js looks like. I’d suggest digging more on the basics before jumping to bot developing. I stream DJ Sets and I want to spice up my chat Create an array of responses then pick one response at random: $(eval responses = [`response 1`,`response 2`,`response 3`,`etc`]; Checkout this answer: send multiple responses to client via nodejs You may want simulate the multiple responses (solution 1) that you want by returning an array property with the In this Streamlabs Chatbot tutorial I show you how I set a single command to have multiple/random sound responses. mep 2gz 5vk ely bff ht7 ij9m skl myhn xosz lfmr cp9 ffa sj7i l4o