Discord Bot Tutorial

So I wanted to add an 8ball function to my discord bot, but I don’t know how to type the code, like how to get the message to have multiple outcomes.

you want to have a random output

one possibility, you get all possible responses in an array or list, get a random number between the first and last index, and give the response at that index

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.