javascript – How do I make a Discord bot react to the last message of someone I tagged?

I’m trying to make a js Discord bot that will custom react to the last message of the person I had mentioned within a server. I’ve only tried my hand at javascript for the past day, so I apologize for the noobness. I tried looking for similar solutions and applying logic to no avail. This is the idea

Example: 
> User1: I just ran a marathon!
> User2: !goodjob @User1
> (Bot reacts to 'I just ran a marathon' with multiple reactions like :happy: :1thumbsup: and/or a custom react)

Here is what I have so far, however this only makes the bot react to the person who initiated the command (without the 3 lines that start with # that I put now in the example)

if (cmdName === 'goodjob') {
  let mention = message.mentions.users.first();
  #function getUserFromMention(mention){
  #const matches = mention.match(/^<@!?(d+)>$/);
  #const id = matches(1);
  message.react('<:emoji:ID>');
  message.react('<:emoji:ID>');
  message.react('<:emoji:ID>');
}
})
});

I am not very skilled so I probably messed up the logic somewhere. If the solution was elsewhere I’m sorry! Any and all guidance is appreciated!

Discord: purpose of the "I’m making this server for a club or community" when creating server?

What is the purpose of the checkbox "I’m making this server for a club or community", when you try and create a new server in discord?

discord server creation dialogue box

Selling Fastani.net | ReactJS Site | 210k unique visitors | 5k registred users | Discord | Proxies123.com

Hello,
I’m the owner of fastani.net and I decided to sell fastani.net. Reason behind it is because covid19 hit too hard on me and my bills so i won’t be able to fund it anymore.
Domain Price & Info:
Domain Name: fastani.net
Registered With: namecheap (currently in moving to njall)
Expires: setember 2021
Price or Starting Bid: 150$
Methods of Payment: PayPal only
BIN (Buy It Now) Price: 200$
Proof of ownership: imgur.com/a/IWnesf5
Website:
– Files, Design, Scripts
Price: 250$ (non exclusive copy), exclusive is 999$
Servers: 8TB of uploaded content }
Discord server with 1400 members }
Price for both are 200$
OR BIN EVERYTHING FOR: 1200$
Site ownership fastani.net/wjunction.txt

 

python – making a discord bot print coloured text using the css code format

Hi i have a simple bot that takes a command:

@bot.command(name='repeat', help='help me to understand bots')
async def test(ctx, *lines):
    print("repeating")
    coloured_lines=()
    for line in lines:
        coloured_lines.append("```css n"+ line + "```")
    await asyncio.gather(*(ctx.send(line) for line in coloured_lines))

You write to it a command like $repeat “green text is cool”, and you should get an output like:

enter image description here

instead you get enter image description here. My intuition is that this is because something is happening with the ` character – although i am not sure what, or how to fix it.

8$/75$ | DISCORD NITRO ONE YEAR/MONTH GIFT (NOT CRACKED) | 75$/8$

Hello im selling discord nitro one year and month gift codes.
Pricing:
Year: its 75$
Month:8$

how to buy?

message me on discord : f0cco#0228
or buy from autoshop : fomrmarket.selly.store

:]:]:]

programação dinâmica – Comando do discord ban e mute

OLha eu não acho nenhum código para meu bot executar meu comando de ban que eu programei vcs pode me mandar um código de ban e de mute para que eu possa concluir meu bot?

permissions – Discord allow uploading from hidden directories

Stack Exchange Network


Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

nodejs – Discord bot node.js mssql package

Soy bastante nuevo en js y venia a ver si me podian ayudar un poco, tengo un bot en discord mediando node.js, discord.js, y he hecho la conexion a una base de datos mssql con el package mssql, mi problema es que quiero que el bot de discord muestre un valor especifico de un field, pero en el chat solo sale (object, Object), alguna idea de como puedo hacer que se vea el valor real?

Codigo:

const client = new Discord.Client();
var sql = require('mssql')


var dbconfig = {
   server: "-",
   user: "sa",
   password: "-",
   database: "-",
   port: 1433,
   options: {
      encrypt: false,
      parseJSON: true
   }
};



 client.on("message", message => {
   if(message.content.startsWith("&test")){
   var conn = new sql.ConnectionPool(dbconfig);
   conn.connect(function (err) {  
   if (err) throw err;
   var req = new sql.Request(conn)
   req.query(req.template`select Usuario FROM Usuarios where nUsuario = '1'`, (err, result) => {
      if (err) throw err;
      else
      message.channel.send(`${result}`);

  
                     
         conn.close();
   });
 });
};
}); ```


Gracias por su tiempo!

Deal – Easy 25BMF for joining this discord server | Proxies123.com

Earnings Disclaimer:  All the posts published herein are merely based on individual views, and they do not expressly or by implications represent those of Proxies123.com or its owner. It is hereby made clear that Proxies123.com does not endorse, support, adopt or vouch any views, programs and/or business opportunities posted herein. Proxies123.com also does not give and/or offer any investment advice to any members and/or it’s readers. All members and readers are advised to independently consult their own consultants, lawyers and/or families before making any investment and/or business decisions. This forum is merely a place for general discussions. It is hereby agreed by all members and/or readers that Proxies123.com is in no way responsible and/or liable for any damages and/or losses suffered by anyone of you.

audio – Discord has robot voice with voicmeeter banana after windows update

So first of all, some windows update reset every sound setting I had setup to have my cheap microphone sound decent.
And after that, I’ve noticed that my mic on discord has a robotic sound when I speak, which doesn’t happen on other programs like FL Studio or Audacity, and never happened prior to the update. The fix I found is restarting discord again and again until it starts working, but that is extremely tedious. I hope to find a more permanent fix. All of my buffer and sample rates are set to the same thing.