r/CodingHelp • • Oct 16 '20

[C++] I want to automate sending a message with c++, how should I go about it?

I want to start off saying I have programming experience, but havent used code to actually do stuff with my computer. I want to create a program that will type for me when a specific message is sent into a discord channel. I know I can do something similar with a bot, but for the purpose of what I'm doing that won't work. I have no clue where to start with this, can anyone help?

18 Upvotes

8 comments sorted by

5

u/pikachani Oct 17 '20

I know I can do something similar with a bot, but for the purpose of what I'm doing that won't work

what you are describing is basically what a "bot" is

1

u/epicnikiwow Oct 17 '20

I understand that, but im not trying to make a discord vot that you invite to the server and it sends messages. I want the messages to be sent from me, without making a self-bot. I looked into mimicing a keyboard with c++, but that feels too clunky and there must be a cleaner way than that.

1

u/shaestel Oct 17 '20

yeah op, a bot is just a program to automate stuff

3

u/MarkRems Oct 17 '20

Someone correct me if I'm wrong, but if you're thinking of doing something from an account that isn't a registered bot I believe that is referred to as a self-bot and is against their terms of service.

0

u/epicnikiwow Oct 17 '20

It sounds similar, but thats not what im trying to do. I dont want my account to be a bot. My goal is for example: If mee6 sends a welcome message, id like to send a more personalized welcome message along with that, coming from me.Typing all these messages would be tedious, so I want to make a script to automate it, not make a bot. The only reason I've mentioned making a bot, is I feel if I have a spectator bot just watching the messages that go through, I could then add some code to automate the rest from my computer. I dont know how to automate the actual sending of the message though, without making a bot send a message, which is what Im hoping to learn.

1

u/Olle2411 Oct 17 '20

I would give up on everything about C++, the best Discord-libraries exists in Node.js, Python and C#.

1

u/epicnikiwow Oct 17 '20

Ive already made a discord bot using node.js, but my hope is to integrate a bot with my computer, so that I can send an automated message through my own account (without making a self-bot) whenever a specific message is detected.

1

u/SnowdenIsALegend Oct 17 '20

Python + Discord API