Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@discordia/action-openweather-current

mfasman954MIT1.5.0

An action to look up the current weather for a city using the OpenWeather API

discordia, discord, action, action-openweather-current

readme

Note: Some of the links in this README file work better on the documentation site

@discordia/action-openweather-current @discordia/action-openweather-current

What does this action do?

@discordia/action-current-weather uses the Open Weather API current weather endpoint to get the current weather in a location that the server member specifies. You must provide your own API key when creating an instance of this action.

The request comes in the form @BotName weather {city name} {state} {country code} where {state} and {country code} are each optional.

Installation

# install the module using npm
npm install @discordia/action-openweather-current

# install the module using yarn
yarn add @discordia/action-openweather-current

Usage

Add the query to the existing array of queries that your bot can respond to.

const DiscordiaFramework = require('@discordia/framework');
const actionOpenWeatherCurrent = require('@discordia/action-openweather-current');

const actions = [
  // Other actions can go here...
  actionOpenWeatherCurrent('OpenWeather API Key'),
];

const myBot = new DiscordiaFramework('DISCORD TOKEN', actions);

myBot.start();

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.5.0 (2020-05-18)

Features

  • anilist: introduce AniList actions (8075e1b)
  • set up actions directory (8e11f6c)

1.4.2 (2020-05-11)

Bug Fixes

1.4.0 (2020-05-11)

Bug Fixes

  • fix broken commit (1ac3319)
  • action-current-weather: include icon embed (1d95116)

1.3.0 (2020-05-11)

Features

  • action-current-weather: initial current weather implementation (45dedd7)

1.4.0 (2020-05-11)

Bug Fixes

  • action-current-weather: include icon embed (1d95116)

1.3.0 (2020-05-11)

Features

  • action-current-weather: initial current weather implementation (45dedd7)

1.3.0 (2020-05-11)

Features

  • action-current-weather: initial current weather implementation (45dedd7)