Some suggestions

#8

Probably not difficult, you could write a JavaScript hook to go back and parse all of your log files. That would raise your system load and hammer the drive trying to gather all of that information though. Also, logs automatically age off, so, you never really have “the first log.” This is nothing that I would personally code, as it would be a resource hog.

#9

the [twitter feed] thing is directly from twitch? Oo

and it would be resource hog if it will look for the word every time, but I was thinking about the bot looking for the word only when you add it for the first time, and then act exactly like it is working now.

#10

You said the name. Not the [Twitter Feed]. Edit the language file to change the output.

#11

Feel free to code it :slight_smile: It is a resource hog when it has to scan every log file for a word everytime a new word is added.

#12

cool thanks for this info :slight_smile:

1 Like
#13

I didn’t say which language file, sorry:

scripts/lang/english/handlers/handlers-twitterHandler.js

$.lang.register('twitter.tweet', '[Twitter Feed From @(twitterid)] $1');
$.lang.register('twitter.tweet.mention', '[Twitter Feed From @(twitterid)] @$1: $2');

Read:

For suggestions on customizing the language files.

1 Like
#14

what do I put instead of twitterid, if I want to put the display name of the person who tweeted?

#15

Do you mean their Twitch Display Name?

#16

their twitter display name yeah.

#17

In short, no. Twitter has rate limits on each lookup which is why it was never included originally. The Twitter API doesn’t return that information by default and requires an additional lookup.

If you want to put the display name manually:

‘Tweet from Whatever I Want to Put Here: $1’

Would work. But, we do not lookup the Display Names that may be referenced in the Tweet in anyway, if that is what you mean.

If I am misunderstanding, I will tell you what I tell my development team that I manage at work:

Create me a concise user story with clear examples. :slight_smile: Show me what you want to see, what helps a ton.

#18

basically, the bot twitter account is following like 150 people IIRC

when one of them is tweeting something (lets say person X), I want the bot the type in chat something like
[PersonXDisplayName]: “msg”

#19

So, you want to scan the timelines of folks that the bot follows and report what they tweeted into chat? Not items tweeted at the bot? And you are using a bot account instead of your account for the bot to interact with Twitter?

#20

exactly, items tweeted by the bot seems pretty irrelevant for my chat.

my bot has his own bot account yeah.

#21

The short answer is, no. There are rate limits in Twitter for pulling other timelines. You are only allowed a limited amount within a 15-minute window, so, at some point, you couldn’t even pull everyone that follows you. The module is meant for managing the Broadcasters Twitter, it isn’t mean to scan other accounts. You are also stepping out into “get your Twitter account banned” territory, perhaps. Do you have permission from those folks to scan their accounts for their Tweets and resend them automatically in your channel?

#22

:thinking:

but the bot was doing pretty much what I just said, every time someone was tweeting, it was showing it on the chat, without me editing any code (I am in group chat, so now this doesn’t work)

I was under the impression I don’t need to ask anyone for permission, considering its a public information?

Also, I don’t really need to access anyone’s timeline, twitter shows me their tweets automatically, and if it shows it to me already on the website, I am kinda confused about why it would be a problem to take it using the bot.

#23

Getting data from the main site and from their API is completely different, Twitter’s API is very secured and you need to be authenticated to get any information regardless of it being public on the main site or not.

#24

It was showing people that posted on your timeline, and showed up on your timeline, it doesn’t scan their timelines for information.

The information is not exactly public, but the property of Twitter. Their Developer Terms of Service (when using the API) is fairly strict - for example, you can get away with duplicate posts via the web interface and usually spamming out to multiple trending hashtags or mentioning (@user) users. However, that behavior can lead to an account being banned (we have had it happen) when using the API. Twitter realizes there is a difference between “human eyes” and a “robot” and treats them differently.

We do our best to go by the Twitter Terms of Service. Some folks have modified the Core to behave differently, and that is fine, the bot is open source. However, if their accounts are blocked or post-banned, we cannot provide support at that time. We already had a long talk with Twitter some time ago when we provided a generic account for folks to use that was banned and they gave us a laundry list of “do’s and do not’s” which we take pretty seriously after having an account banned. We apply what they told us to the way that the bot behaves to protect users from having that happen to them. I understand it is a bummer, but, that is why we do it.

#25

are the exact limitations you have spoken earlier apply to the tweets that showed up on my timeline or is it different in that aspect?

#26

Twitter has limitations in place for everything accessed via their API. They don’t care if you’re accessing ‘your’ data or someone completely unrelateds data. If you’re actually more than mildly interested I’d suggest reading their documentation and terms of service to grasp the nitty gritty details.

#27

I will look at it this weekend, mid term examination week atm