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!
Coding help with bounty...
-
Sanguine
- Posts: 362
- Joined: Thu Oct 08, 2015 9:48 pm
Re: Coding help with bounty...
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.
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.
-
Rig
- Posts: 2343
- Joined: Wed Dec 16, 2015 8:00 pm
- Location: JESUS
Re: Coding help with bounty...
Sanguine wrote: ghetto rig
yesssss
-
Naerin
- Posts: 319
- Joined: Sat May 23, 2015 12:29 pm
Re: Coding help with bounty...
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
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