This is an example of a function I'm writing in my Discord.js bot project. Receive news from sources like YouTube, Reddit, Steam, or any site that supports RSS. Questions = questions.split(" ") # provide the questions separeted by Įmb.I'm new to using JS for anything other than DOM manipulation, so I'm not sure if the following code is taking full advantage of the Async concept in JS. Return def dmuser(ctx: commands.Context, user: discord.User, *, questions: str): Sesh: This calendar bot can be used to generate events from messages, customize time zones for specific users, link to Google calendar, or use polls to choose ideal times for certain events. This is my code: import discord, sqlite3 from discord import appcommands from discord.ext import commands intents () client discord.Client (intentsintents) tree appcommands.CommandTree (client) conn nnect regos. Reply = await bot.wait_for('message', check=check_msg, timeout=600) The current statement uses 1, and there are 6 supplied. Thank you for answering These will be to show messages from my discord and a forum. The perfect Discord bot for your community A dashboard for settings, interactive reaction roles and highly customizable welcome messages ProBot 4. If i was doing this i'd probably use a Message event to execute when a message is sent then create conditions to be met before the message is sent to an rss feed service etc. Return thor = user and message.channel = user.dm_channel Google 'Discord.js', 'Discord.py', 'pycord' or whatever coding language you prefe. """Send the question to the user and return the answer""" So, you can create a function that performs these steps and returns the answer and later use it to make your questionnaire.Įxample: async def ask(question: str, user: discord.User) -> str: Repeat the procedure for the next question.Use bot.wait_for to capture the user's reply message.Send a message in the channel with the question Discord RSS Feed Bot Readybot integrates your Discord server with RSS feeds, YouTube, reddit, recommended news & more.The process for collecting successive responses consists of: Could somebody explain to me, how I should log only the user's messages and then store them in temporary memory to send after the end of the question form, and show me an example? I also logs the messages it sends itself, which results in both the user and the bot in the logged messages channel. I came up with that, the problem is it only sends one message, and sends the reply immediately, so I have no idea how to add followup questions. If isinstance(message.channel, discord.DMChannel):Īwait nd(f"```") Print('"' + message + '"' + ' sent to ' + def on_message(message): # just so i can see every dm (a bit creepy ik but will be changed) def dmme(ctx, user: discord.User, *, message):Īwait ctx.send('The correct format is: ">dm /apply')Īwait nd("What is your discord username?")Įmbed = discord.Embed(title="Embed test", description="A test for my discord bot", color=0x5bcdee)Įmbed.add_field(name="Message sent:", value=message, inline=False) Find a valid feed All it takes is some Googling - an example feed would be 3. Invite Me You'll have to invite me first to be able to use my features 2. For the full list of commands, use the rss.help command. Since Exotics are a huge part of Destiny 2 builds, using this bot to farm them is a great idea. Getting automatic delivery of your desired news can be done in 3 simple steps. Elite: Dangerous related Discord If your Discord server is related to Elite: Dangerous, you may be able to use my feedbot instance instead of running your own copy. Right now, I have no idea how to do that, I am new to coding. The link to the server the bot is in is below. Since this bot doesn't react to anything in channels or messages, you can have it sign into the same account as another bot, and externally it should appear to be a single bot. I'm trying to make my discord bot have a command, where if you type ">dm apply", the user is sent a series of questions where he has to answer the individual question, and only then the next question will come, kind of like an application bot, I would also like the bot to collect all these answers and then put them into an embed with all of them.
0 Comments
Leave a Reply. |