Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot Commands #842

Closed
amochkin opened this issue Mar 14, 2018 · 4 comments
Closed

Bot Commands #842

amochkin opened this issue Mar 14, 2018 · 4 comments
Labels
P3 Low priority
Milestone

Comments

@amochkin
Copy link

Hi, we are making IoT projects on Tox.
For this projects it would be awesome for Tox to support tags of bot commands.
For example, an IoT device would use a toxcore client (as we do now). And this client would have some means of advertising to all its contacts (peers) that it is a bot, and it support some specific commands.
Right now, as soon as IoT device and a user get connected over Tox, the IoT device sends a small greeting with further instructions. But it is much better to do it as in-band protocol.
Do you have any plans for cooperating with developers like us? Is there any possibility to submit a feature request?

@zoff99
Copy link

zoff99 commented Mar 14, 2018

your clients can exchange any kind of data you need with this API:

tox_friend_send_lossless_packet()
tox_friend_lossless_packet_cb()

https://github.com/TokTok/c-toxcore/blob/master/toxcore/tox.h

@nurupo
Copy link
Member

nurupo commented Mar 14, 2018

@zoff99 you misunderstood what @amochkin was asking about.

Modern IM platforms, such as Discord and others, have a "bot protocol", i.e. a client can declare that it's a bot, in contrast to a human user, and it can provide extra information on which commands it supports and such. @amochkin is asking that we add support of this in the Tox protocol and the toxcore library, so that all Tox clients and bots would support it. This would allow Tox clients to visually distinguish bot users from human users in the UI, as well as to provide additional information about the bot without bots having to resort to using the annoying "greeting messages" like the one @amochkin mentioned.

@sudden6
Copy link

sudden6 commented Mar 15, 2018

I think that's the perfect use case for #513 and #777

Although, I think both of those are not very extensible.

@iphydf iphydf added this to the v0.2.x milestone Jul 16, 2018
@iphydf iphydf added the P3 Low priority label Apr 27, 2020
@iphydf
Copy link
Member

iphydf commented Feb 4, 2022

Clients can do this with custom packets.

@iphydf iphydf closed this as completed Feb 4, 2022
@iphydf iphydf modified the milestones: v0.2.x, meta Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Low priority
Development

No branches or pull requests

5 participants