U
U
ukrainemf2020-12-24 23:20:52
Node.js
ukrainemf, 2020-12-24 23:20:52

How can I make the bot send an encrypted message to the user?

How to make a command that will encrypt the message entered by the user. For example, the user sends a message "how are you?", after which the bot encrypts it, for example, shifting the letters forward by 3 characters and displaying "ngn zhzog?"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-12-24
@ukrainemf

I think you will write the necessary checks yourself

let cryptMsg = msg.split('').map((c) => String.fromCharCode(c.charCodeAt(0) + 3)).join('');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question