Sure that is entirely possible..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?
Code: Select all
# 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"]
Code: Select all
# 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
Follow this advice exactly. You should have no problems then.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?
Yes. Those are supposed to be there. That is the tweet ID. How else can you reply to someone's exact tweet without that??!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?
A tweet that mentions a person and references the exact tweet they made goes like this:!tweet @Gamblores HI
For example, below the %ID% is required. You cannot reply-to users tweets without it.!tweet 135233287240155136@Gamblores HI
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<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 )
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.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.
Code: Select all
[15:13] <TwitterBot> [18:13:00] unable to convert date-time string "2011-11-25 18:13:00 MSK": syntax error (characters 19-22)
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.blake wrote:Hey
Any chance of getting something like this for facebook