Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including q-to-y with all npm packages installed. Try it out:

var qToY = require("q-to-y")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

q-to-y v1.0.0

Even lower-effort x-to-y bot setup with help from qauth

A tool for even more rapidly scaffolding x-to-y style Twitter bots. Uses ~coleww's x-to-y and ~lalanl's qauth with a bit of glue splattered between.

NPM

##Use this if

  • You hate setting up your bots' authentication by hand.
  • You want to make a bot that replaces one word with another.

##Don't use this if

  • You're using a version of Node older than 4.0.0.
  • You want to retrieve your auth values from something besides the qauth-generated flat file.
  • You want to make a more complicated bot.
  • You hate fun.

##Usage

qtoy(wordToReplace, newWord, language, [ignore])

See the x-to-y documentation for more info on the parameters.

// This is the entirety of the code that runs https://twitter.com/finalexecutive
const qtoy = require('q-to-y');
qtoy('CEO', 'final boss', 'en');

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free