Page 1 of 1

Coding help with bounty...

Posted: Tue Aug 29, 2017 2:43 pm
by Fermin
I want to be able to 'tweet' from the command line in CMUD...

Have a POG and 1000 gold for anyone that can make that happen, believe you can use python/ruby/JavaScript...

Much thanks!

Re: Coding help with bounty...

Posted: Tue Aug 29, 2017 2:57 pm
by Sanguine
I'm not sure I'd be able to figure out how to get the Tweet to publish automatically via behind the scenes API, but you could use some combination of these to ghetto rig it:

An alias and the URL command - https://www.zuggsoft.com/zmud/help6/URL.htm
Twitter's URL tweet ala - https://twitter.com/intent/tweet?text=L ... 20smobbers!

And then possibly some browser userscript to automatically click the Tweet button, or do it manually.

Re: Coding help with bounty...

Posted: Tue Aug 29, 2017 4:24 pm
by Rig
Sanguine wrote: ghetto rig


yesssss

Re: Coding help with bounty...

Posted: Tue Aug 29, 2017 5:50 pm
by Naerin
Usage: tweet xxx
tweet Welcome to the Wheel of Time Mud!

#CLASS {GhettoRig}
#VAR newTweet {}
#VAR toTweet {}
#VAR twitterURL {https://twitter.com/intent/tweet?text=}
#ONINPUT {^tweet (*)} {
@toTweet = %replace( %1, " ", ~%20)
@newTweet = %concat( @twitterURL, @toTweet)
#URL @newTweet
#ECHO Tweet: %1
}
#CLASS 0