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 ac-keijiban with all npm packages installed. Try it out:

var acKeijiban = require("ac-keijiban")

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

ac-keijiban v1.3.0

Randomly get a message from the Animal Crossing bulletin board

License: MIT

AC-Keijiban

Sends a random message from the Animal Crossing: Wild World video game on Nintend DS created by Katsuya Eguchi and published in 2005.

The quotes come from three types of board message:

  • "Message of the Week"
  • "Poetry"
  • "Talking to Myself"

Installation

You have to add this module to your NPM project folder.

$ npm install ac-keijiban

Example

Importing the module

// Require with a language (format xx)
const acKeijiban = require('ac-keijiban')('en');
// Require with a language (format xx-YY) sets 'en'(format xx)
const acKeijiban = require('ac-keijiban')('en-US')
// Require without an argument sets 'en'
const acKeijiban = require('ac-keijiban')();

Displaying a random "Message of the Week"

console.log('*Message of the Week*');
console.log(acKeijiban.messageOfTheWeek.random());

Displaying a random "Poetry"

console.log('-Poetry-');
console.log(acKeijiban.poetry.random());

Displaying a random "Talking to Myself"

console.log('-Talking to Myself-');
console.log(acKeijiban.talkingToMyself.random());

Translation

For the moment, the only language avaible is English. The French messages are being collected directly from Animal Crossing: Wild World on Nintendo DS.

Obviously, you are free to participate to the translation in French or in any other language.

Avaible languages

English

  • "Message of the Week": 85 (complete)
  • "Poetry": 2 (complete)
  • "Talking to Myself": 74 (complete)

French

  • "Message of the Week": 8
  • "Poetry": 0
  • "Talking to Myself": 4

Thanks

Thanks to:

Licenses

  • My source code is published under MIT License.
  • All the quotes from Animal Crossing: Wild World is the property of Nintendo.
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