Trying to build a bot that listens for it's own name to be tagged - reddit

I've been playing with the reddit API and I'd really like to make a bot that listens for someone to tag it in a comment, and then responds with a comment.
I've been looking through the docs here but haven't found what I'm looking for.
I've seen other bots do this in the past so I feel it must be possible.
If someone could point me in the right direction I'd really appreciate it.
Cheers.

If you use PRAW (Python Reddit API Wrapper), then you can use the redditor.inbox class to track "mentions". http://praw.readthedocs.io/en/latest/code_overview/reddit/inbox.html?highlight=Mentions
Otherwise, AFAIK mentions are just another item in your inbox.
https://reddit.com/r/redditscripting

Related

Delete channel in Slack API

I am finishing development of API similar to Slack API, but with more/different features. I have to implement an API (more like command/endpoint) for deleting a room and I can't find anything like that in the documentation.
It seems that it can be done via webUI according to this help article.
But there is no method for it in Slack API methods.
I think there is only channels.archive with similar purpose, but it seems very strange not having a method to delete a room.
Is it really like that that room can't be deleted via Slack API?
There is no method for deleting a channel in the official API, but there is the undocumented method channels.delete that has this exact functionality.
Basic usage is:
https://slack.com/api/channels.delete?token=TOKEN&channel=C12345678
Please note that undocumented methods are not officially supported by Slack and might change or stop working without any prior warning. Still, they are very useful and I have made a github to document all known undocumented methods. Please feel free to use and contribute.
Tried it today 2nd June 2022 and it responds with 'unknown_methods', I guess it's outdated now.

Viewing user responses from slack to errbot

I'm very new to bots. I'd like to develop a quick/simple test that makes it possible for a bot (errbot) to write a message to slack, then view responses back to the bot from users on slack.
How do I go about achieving this? Do I need to write a plugin for this?
Apologies if my question is too general/ambiguous -- I haven't come across an example that clearly explains this.
Yes, you need to program a bot a way or another, Errbot is just a framework that help you do that (concentrate on messages/responses) through plugins and not on the technicalities of the services it is connected to (Slack or any other).

Upvote Youtube Comment With API

Hello guys i was reading google youtube data api But i did not found any way to upvote or like the comment on video. anyone have any info on this
Thanks
I think it's safe to conclude this feature does not exist for the following reasons,
The otherwise thorough API documentation makes no mention of this feature. I highly doubt youtube/google would forget to document a feature.
This question has been asked several times before on SO; all of which have no accepted answer (1, 2, 3). With the oldest question being 10 months old, it's very unlikely no one would have found this feature if it did exist.
Youtube is a common target of voter-bots and hence it would make sense to not offer an API entry-point as a first line of defense.
The official Youtube (android) app offers no comment-upvote option but only flag and reply options. If a comment-upvote feature would exist, you'd think Youtube would show it off in their own app.
Yes, you can like a comment, but only if it is YOUR comment. That means if you were the author of it.
Sorry for the short answer, but that is all there is to it in v3

Vicidial direct call in my web app

I need to implement direct call feature via vicidial in my web application.
Let me explain the flow to better understand what I need to do. user would be able to login in vicidial via a webpage of my app. then can call on any number by entering number.
Is there any doc or wiki available to implement this feature. Guidance in simple steps would also be appreciating.
Thanks in advance :)
We implemented something like that using a product called WombatDialer that offers good APIs and is quite easy to set up (well, easier than ViciDial).
See http://www.wombatdialer.com/manuals/WD_UserManual-chunked/ar01s08.html for an API reference.

I need a Twitter widget that isn't hideous

I need a Twitter widget that isn't chunky and disgusting like the official one (http://twitter.com/about/resources/widgets/widget_profile) and more like this one on some guy's blog (http://kelwynshade.blogspot.com/).
I've checked his source, obviously - and it appears to be part of the Google Friend Connect service, which seems like it aims to solve a lot of problems I just don't have. And by that I mean it's bloated as hell.
Please advise.
Okay, ultimately I determined that I had enough CSS control over the stock widget to make do. If anyone has a better solution though I'd still like to hear it.
I dont know if this helps but u can check the post to twitter app from here:
http://marakana.com/forums/android/examples/67.html
and here
http://marakana.com/techtv/android_bootcamp_screencast_series.html
Hope it helpes:)

Resources