/shibabot

:dog2: :space_invader: Chatbot for Discord

Primary LanguagePython

Shibabot

Shibabot

Python Discord GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks

Commands

  • !giphy [param]: Fetch a gif from Giphy.
  • !stock [param]: 30-day performance chart for a given stock ticker symbol.
  • !crypto [param]: 60-day performance chart for a given cryptocurrency symbol.
  • !wiki [param]: Fetch Wikipedia summary of a given topic.
  • !imdb [param]: Fetch movie summaries, ratings, and box office performance.
  • !urban [param]: Get definition from UrbanDictionary.
  • !weather [param]: Return temperature and weather per city/state/zip.

Getting Started

Installation

Install and run this bot via simple Makefile commands:

$ git clone https://github.com/toddbirchard/shibabot.git
$ cd shibabot
$ make install
$ make run

Configuration

Replace the values in .env.example with your values and rename this file to .env:

  • ENVIRONMENT: Set to either development or production for logging purposes.
  • DISCORD_TOKEN: Secret API token.
  • DISCORD_CHANNEL_1: Server name for bot to join.
  • DISCORD_CHANNEL_2: Additional server name for bot to join (optional).
  • GIPHY_API_KEY: API key secret for fetching Giphy images.
  • IEX_API_TOKEN: API key secret for fetching stock data.
  • ALPHA_VANTAGE_API: API key secret for fetching crypto data.
  • PLOTLY_API_KEY: Plotly chart studio API key.
  • PLOTLY_USERNAME: Plotly user to generate charts via Plotly studio.
  • WEATHERSTACK_API_KEY: API key for fetching weather data.

Remember never to commit secrets saved in .env files to Github.