Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Node.JS How to forward messages from .txt into discord channel?

GFT

New Coder
I'm playing the game GTA SA MP, and in this chat system the category that I would like to redirect to discord always starts like this -> [CLAN]. And a notepad file named chatlog.txt is automatically saved in the computer, but once opened, nothing is saved until I close it and open it again, then the new messages appear. How, or in what way, could I redirect those messages with a robot on discord? Specifically, I have no knowledge of coding, I only know how to make a discord robot, but not where to host it. I thought that uptime robot would be a good solution. I'm asking for help with scripting, is it possible to somehow write the messages on discord from the .txt file or some script to monitor the current chat in the game and forward it?
im trying to write a small discord bot which is watching a txt file and post the content, everytime the file changes. it should post only the new line from the txt
 
Back
Top Bottom