Skip to content

CataDev0/NorthShirahebi

Repository files navigation

NorthShirahebi

A Medusa module (plugin) for NadekoBot.

Features

  • Waifu Pics: Fetches anime images and reaction gifs from waifu.pics.
  • Weather: Provides current weather and 5-day forecasts using OpenWeatherMap.

Commands

Social & Images

  • .hug [@user] - Hug someone.
  • .kiss [@user] - Kiss someone.
  • .pat [@user] - Pat someone.
  • .cuddle [@user] - Cuddle someone.
  • .wave [@user] - Wave at someone.
  • .waifu - Get a random waifu image.
  • .neko - Get a random catgirl image.
  • .shinobu - Get a random Shinobu image.
  • .megumin - Get a random Megumin image.

Weather

  • .weather <location> - Top level command shows the current weather for a specified location.
  • .forecast <location> - Shows a 5-day weather forecast for a specified location.

Configuration

To use the weather commands, you must obtain an API key from OpenWeatherMap and set it as an environment variable named OPENWEATHERMAP_API_KEY before starting your bot.

export OPENWEATHERMAP_API_KEY="your_api_key_here"

Systemd Configuration

If you are running the bot as a systemd service, follow these steps to set the environment variable:

  1. Edit your service file (usually located at /etc/systemd/system/nadekobot.service):

    sudo nano /etc/systemd/system/nadekobot.service
  2. Add the Environment directive under the [Service] section:

    [Service]
    ...
    Environment="OPENWEATHERMAP_API_KEY=your_api_key_here"
    ...
  3. Reload the systemd daemon and restart the service for changes to take effect:

    sudo systemctl daemon-reload
    sudo systemctl restart nadekobot

Installation

  1. Open your terminal and navigate to the directory containing your bot's root folder.

  2. Run the following command to download and extract the module:

    mkdir -p nadekobot/output/data/medusae/NorthShirahebi && curl -sL https://github.com/cataclym/NorthShirahebi/releases/latest/download/NorthShirahebi.tar.gz \
    | tar xzv -C nadekobot/output/data/medusae/NorthShirahebi
  3. Start your bot.

  4. Load the module by running: .meload NorthShirahebi

About

Shrine

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages