egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Birdy (OAuth, Twitter, Tweets&MegaHAL v6.01d) Jun12,2013
Goto page Previous  1, 2, 3 ... 11, 12, 13 ... 19, 20, 21  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
cypher1
Voice


Joined: 10 Oct 2011
Posts: 2

PostPosted: Mon Oct 10, 2011 5:01 pm    Post subject: Reply with quote

First things first

Many thanks for a great script its areally nice.

Now to the bread and butter of the post, i'm looking to secure the bot as i don't want every random posting tweets, i have set it to require the n flag within eggdrop but i was looking to remove the channel access requirement so that only people with the n flag could post but not just give access to people with OP on the irc channel, can this be done?
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Mon Oct 10, 2011 5:10 pm    Post subject: Reply with quote

cypher1 wrote:
First things first

Many thanks for a great script its areally nice.

Now to the bread and butter of the post, i'm looking to secure the bot as i don't want every random posting tweets, i have set it to require the n flag within eggdrop but i was looking to remove the channel access requirement so that only people with the n flag could post but not just give access to people with OP on the irc channel, can this be done?


Sure that is entirely possible..
Code:
# what modes can people temporarily tweet with
# these are channel modes, not flags on the bot
# you can use op, voice, or both, or "".
# (list)
set twitter(channel) [list "op" "voice"]


Change the last line to: set twitter(channel) [list]

Code:
# the binds, change these if you want to
bind pub - !twitter proc:twitter
bind pub - !tweet proc:tweet
bind pub - !private proc:private
bind pub - !myfriends proc:twitter:friends
bind pub - !myprofile proc:twitter:user
bind pub - !myhome proc:twitter:home
bind pub - !public proc:twitter:public
bind pub - !mymentions proc:twitter:mentions
bind pub - !mymessages proc:twitter:messages
bind pub - !myprivates proc:twitter:privates
bind pub - !tsearch proc:twitter:search
bind pub - !user proc:twitter:user2
bind pub - !rate proc:twitter:rate
bind pub - +follow [list proc:twitter:dofollow "follow"]
bind pub - -follow [list proc:twitter:dofollow "unfollow"]
bind pub - +service [list proc:twitter:service "Added"]
bind pub - -service [list proc:twitter:service "Removed"]
bind pub - !services  [list proc:twitter:service ""]
bind pub - !friends [list proc:twitter:restlist "following"]
bind pub - !followers [list proc:twitter:restlist "followers"]
bind evnt - prerehash proc:twitter:save
bind pub - +app [list proc:twitter:apps "Added"]
bind pub - -app [list proc:twitter:apps "Removed"]
bind pub - !apps  [list proc:twitter:apps ""]
bind pub - +track [list proc:twitter:track "Added"]
bind pub - -track [list proc:twitter:track "Removed"]
bind pub - !track  [list proc:twitter:track ""]
bind pub - !RTofme proc:twitter:rtome
bind pub - !RTbyme proc:twitter:rtbme
bind pub - !RTtome proc:twitter:rttme
bind pub - !RT proc:twitter:retweet


Change the - above in all of those "bind pub" to an n
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
cypher1
Voice


Joined: 10 Oct 2011
Posts: 2

PostPosted: Mon Oct 10, 2011 8:36 pm    Post subject: Reply with quote

Awesome thanks Smile
Back to top
View user's profile Send private message
tonsit
Voice


Joined: 12 Nov 2011
Posts: 4

PostPosted: Sat Nov 12, 2011 12:13 am    Post subject: Reply with quote

My bot performs the .die command and tells me:
This script requires the OAuthSingle package, it _cannot_ be used alone.

I've tried adding the original oauth.tcl script, and I've installed the packages in the readme.

What am I doing wrong?
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Nov 12, 2011 12:21 am    Post subject: Reply with quote

tonsit wrote:
My bot performs the .die command and tells me:
This script requires the OAuthSingle package, it _cannot_ be used alone.

I've tried adding the original oauth.tcl script, and I've installed the packages in the readme.

What am I doing wrong?


Follow this advice exactly. You should have no problems then. Wink
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
tonsit
Voice


Joined: 12 Nov 2011
Posts: 4

PostPosted: Sat Nov 12, 2011 12:38 am    Post subject: Reply with quote

thanks, i'm not sure how/why I did it, but I only downloaded twitter.tcl and not the .zip with the other files. I started reading through all the posts and found the .zip along the way and now its working. oops.
Back to top
View user's profile Send private message
tonsit
Voice


Joined: 12 Nov 2011
Posts: 4

PostPosted: Sat Nov 12, 2011 2:06 pm    Post subject: Reply with quote

the commands all seem to work, and last night the only issue I saw was in the msg sent to my irc channel there are strange number strings present before @user

[12:59] <@GamBot> Sam Letram: <Gamblore> I updated my icon! ( 135233287240155136@Gamblores - 12h, 7m, 10s ago via SerenityMegahal )

Are they supposed to be there?

Since getting up today and looking at logs i'm also getting an error that wasn't present last night:

[13:03:03] OAuth failed: (403) Error: status is a duplicate.; Request: /1/statuses/update.json ( ok )
[13:03:03] (Megahal) GamBot replied to (gamblores) accounts.
Back to top
View user's profile Send private message
tonsit
Voice


Joined: 12 Nov 2011
Posts: 4

PostPosted: Sat Nov 12, 2011 5:46 pm    Post subject: Reply with quote

ok, so the number string was easily removed when i went in and removed %id%.
the errors cleared up after i deleted twitter.dat
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sun Nov 13, 2011 1:30 pm    Post subject: Reply with quote

tonsit wrote:
the commands all seem to work, and last night the only issue I saw was in the msg sent to my irc channel there are strange number strings present before @user

[12:59] <@GamBot> Sam Letram: <Gamblore> I updated my icon! ( 135233287240155136@Gamblores - 12h, 7m, 10s ago via SerenityMegahal )

Are they supposed to be there?

Yes. Those are supposed to be there. That is the tweet ID. How else can you reply to someone's exact tweet without that??!

A tweet that mentions a person goes like this:
Quote:
!tweet @Gamblores HI


A tweet that mentions a person and references the exact tweet they made goes like this:
Quote:
!tweet 135233287240155136@Gamblores HI


For example, below the %ID% is required. You cannot reply-to users tweets without it.
Quote:
<sp33chy> G4TV: Have you ever felt the absolute need to unleash your rage on Creepers in Minecraft? You're not alone: http://t.co/bm78OEZA ( 134903251668713472@g4tv - 1s ago via HootSuite )
<@SinR> !tweet 134903251668713472@g4tv Not really, I really don't like Minecraft, cause theres no point at all in playing
<sp33chy> Tweet created: http://twitter.com/suqmuhnutz (reply to 134903251668713472@g4tv) ( 134903818071707649@suqmuhnutz - 0s ago via bittersweet )

You can see the difference by clicking here. Notice that on that page is the tweet, along with the original reference. This is known as a "reply-to" ID tweet. It shows you the tweet that the reply references. If you remove %ID% you will never be able to do these. This is how the script works ID@user


tonsit wrote:
Since getting up today and looking at logs i'm also getting an error that wasn't present last night:

[13:03:03] OAuth failed: (403) Error: status is a duplicate.; Request: /1/statuses/update.json ( ok )
[13:03:03] (Megahal) GamBot replied to (gamblores) accounts.

Your megahal bot is very new. It isn't generating unique text. Twitter doesn't like you to repeat a recent status update. Your bot, since it is a recently new megahal, doesn't have alot of different text to reply with. So is replying to tweets it sees with a duplicate status update. That error tells you this. Clearing twitter.dat fixes it because this forces the script to re-attain all of its last-id's and makes it forget everything.
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
blake
Master


Joined: 23 Feb 2009
Posts: 201

PostPosted: Fri Nov 25, 2011 11:14 am    Post subject: Reply with quote

hey


keep getting the following when i try send a tweet

Code:
[15:13] <TwitterBot> [18:13:00]  unable to convert date-time string "2011-11-25 18:13:00 MSK": syntax error (characters 19-22)



Solved this issue
_________________
Blake
UKEasyHosting UKStormWatch
Back to top
View user's profile Send private message Visit poster's website
blake
Master


Joined: 23 Feb 2009
Posts: 201

PostPosted: Fri Nov 25, 2011 6:10 pm    Post subject: Reply with quote

Hey


Any chance of getting something like this for facebook
_________________
Blake
UKEasyHosting UKStormWatch
Back to top
View user's profile Send private message Visit poster's website
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Nov 26, 2011 3:43 pm    Post subject: Reply with quote

blake wrote:
Hey


Any chance of getting something like this for facebook

I've never used facebook. I'm betting the best you could relay would be wall updates, and possibly "likes". But I can see "likes" having the potential of unusefulness and being a spam potential.

When you say "something like this", in terms of facebook, what do you mean exactly? Twitter lends an obviousness to it's usefulness. With facebook I can't tell what exactly would be useful in an iRC context. Facebook is picture based primarily.

The twitter script was developed and steered over the course of 2 years. I knew nothing of twitter when I started and now I know more than I ever wish I did. Wink

So I guess what I'm asking, since you brought it up. Twitter and Facebook are not the same. So what is very elegant to do with twitter, this script, will be very hard to mirror using facebook. Thats all I mean.. Wink

But... What are you ideas for it? As remember, I have no idea how facebook works.. So give your ideas in a context that keeps this in mind.. ;D

and blake, one final piece of advice.. heh
http://forum.egghelp.org/viewtopic.php?t=17556&start=60
That url, explains entirely the setup. If you read beyond that initial post down into the thread from that point on. It explains any issues the new oauth requirement have caused and explains precisely how to fix them. If you have any issues with signature generation or timestamp durations appearing correct refer to this as the documentation. That's all there really is. I've never taken the time to document a users guide for birdy. Thats likely what is needed for more users to take advantage of twitter on their eggdrops. Alot figure it's too much hassle to setup. When the reality is, its a setup once and done. The steps are outlined clearly. Its actually a very very simple script, twitter.tcl. The complicated script is oauth.tcl. But you only ever touch the settings within oauth.tcl when you have issues. 90% of users won't have issues. ;D
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Football
Master


Joined: 26 Dec 2008
Posts: 205
Location: Quakenet, #Football

PostPosted: Sat Nov 26, 2011 5:51 pm    Post subject: Reply with quote

Hey speechless,

Wondering if there is a tutorial for the part where you need to make an app on http://dev.twitter.com for the twitter script?
_________________
Idling at #Football, Quakenet.
Back to top
View user's profile Send private message
Trixar_za
Op


Joined: 18 Nov 2009
Posts: 143
Location: South Africa

PostPosted: Sun Nov 27, 2011 1:33 pm    Post subject: Reply with quote

Football: http://forum.egghelp.org/viewtopic.php?t=17556&start=60 explains it pretty well, or atleast I could do it after reading it.
_________________
http://www.trixarian.net/Projects
Back to top
View user's profile Send private message Visit poster's website
Football
Master


Joined: 26 Dec 2008
Posts: 205
Location: Quakenet, #Football

PostPosted: Wed Nov 30, 2011 1:34 am    Post subject: Reply with quote

A Suggestion: How about if when you type !twitter <username> it will also inform you if the user is following you or not and if you are following him.

i.e:

<User> !twitter IRCFootball
Name: IRC Football; location: #Football @ IRC Quakenet; Following: 2,885; Followers: 2,713; Listed: 23; Total Tweets: 1,464. Following: No.
Follows You: YES.
_________________
Idling at #Football, Quakenet.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 11, 12, 13 ... 19, 20, 21  Next
Page 12 of 21

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber