All Projects → fuwwy → moonstone

fuwwy / moonstone

Licence: MIT license
A simple dogehouse.tv API wrapper

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to moonstone

PowerSchool-API
A Node.js library for interacting with the PowerSchool SIS API.
Stars: ✭ 21 (-44.74%)
Mutual labels:  api-wrapper
tplink-smartplug-api
TP-Link HS1xx smart plug API wrapper.
Stars: ✭ 48 (+26.32%)
Mutual labels:  api-wrapper
py-flexpoolapi
🐍 Pythonic wrapper for Flexpool Public API
Stars: ✭ 14 (-63.16%)
Mutual labels:  api-wrapper
clash-api
Ruby wrapper for the Clash of Clans API
Stars: ✭ 14 (-63.16%)
Mutual labels:  api-wrapper
cryptox
Common API wrapper for multiple crypto currency exchanges
Stars: ✭ 50 (+31.58%)
Mutual labels:  api-wrapper
pyArtifact
Pythonic wrapper around Valve's Artifact API
Stars: ✭ 25 (-34.21%)
Mutual labels:  api-wrapper
drip-php
An object-oriented PHP wrapper for Drip's API
Stars: ✭ 22 (-42.11%)
Mutual labels:  api-wrapper
Php-Google-Vision-Api
Google Vision Api for PHP (https://cloud.google.com/vision/)
Stars: ✭ 61 (+60.53%)
Mutual labels:  api-wrapper
covidtrackerapiwrapper
CovidSharp is a crossplatform C# API wrapper for the Coronavirus tracking API (https://github.com/ExpDev07/coronavirus-tracker-api)
Stars: ✭ 11 (-71.05%)
Mutual labels:  api-wrapper
nanoleaf-aurora
A java wrapper for the Nanoleaf Aurora API
Stars: ✭ 19 (-50%)
Mutual labels:  api-wrapper
harvesting
Ruby wrapper for the Harvest API v2
Stars: ✭ 24 (-36.84%)
Mutual labels:  api-wrapper
pagespeedParseR
pagespeedParseR is an R wrapper for Google Pagespeed Insights API, that also enables convenient parsing
Stars: ✭ 20 (-47.37%)
Mutual labels:  api-wrapper
mojang
A wrapper for the Mojang API and Minecraft website
Stars: ✭ 19 (-50%)
Mutual labels:  api-wrapper
autopilot-api
A third-party JavaScript wrapper for Autopilot's REST API.
Stars: ✭ 14 (-63.16%)
Mutual labels:  api-wrapper
discourse-js
JavaScript wrapper around the Discourse API
Stars: ✭ 16 (-57.89%)
Mutual labels:  api-wrapper
pinboard.net
Fully featured API wrapper for pinboard.in
Stars: ✭ 21 (-44.74%)
Mutual labels:  api-wrapper
mixin bot
A simple API wrapper for Mixin Network in Ruby
Stars: ✭ 12 (-68.42%)
Mutual labels:  api-wrapper
Coronavirus
Java API Wrapper for tracking coronavirus (COVID-19, SARS-CoV-2) via https://git.io/Jvoep
Stars: ✭ 16 (-57.89%)
Mutual labels:  api-wrapper
mkm-sdk
Python SDK for Magickartenmarkt API
Stars: ✭ 33 (-13.16%)
Mutual labels:  api-wrapper
cbapi-python
Carbon Black API - Python language bindings
Stars: ✭ 140 (+268.42%)
Mutual labels:  api-wrapper

Moonstone NPM version

A simple, standalone, dogehouse.tv API wrapper

Installing

You will need NodeJS and NPM. To install moonstone on your local project, run:

npm install --no-optional --production moonstone-wrapper

If you need audio support, remove the --no-optional.

Usage

You can use the example from below to see how you can use moonstone.

Ping Pong Example

const Moonstone = require("moonstone-wrapper");

var bot = Moonstone("TOKEN"); // Replace TOKEN with your bot account's token

bot.on("ready", async () => {
  // When the bot is ready
  console.log(`Ready! Logged in as ${bot.user.username}`); // Log "Ready!"
  const topRooms = await bot.getTopRooms(); // Grab the top rooms
  bot.joinRoom(topRooms[0]); // Join the top room
});

bot.on("newChatMsg", (msg) => {
  // When a message is created
  if (msg.content === "!ping") {
    // If the message content is "!ping"
    msg.room.sendChatMessage("Pong!"); // Send a message in the same channel with "Pong!"
  } else if (msg.content === "!pong") {
    // Otherwise, if the message is "!pong"
    msg.user.sendWhisper("Ping!"); // Whisper to the user with "Ping!"
  }
});

bot.connect(); // Get the bot to connect to Dogehouse

More examples can be found in the examples folder.

Support

You can find help on the official support server.

License

Distributed under the MIT License. See LICENSE for more information.

Contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].