Giter Club home page Giter Club logo

mattbot's Introduction

MattBot

Release MattBot

Need help picking a movie? Invite MattBot to join your Discord server!

Getting Started

MattBot is a Discord bot whose sole purpose is to recommend movies starring Matthew McConaughey. It offers two slash commands:

  • ping: Make sure that MattBot is awake
  • movie: Recommend a movie starring Matthew McConaughey

Development

MattBot is a simple TypeScript app. It uses slash-create and runs on Azure Functions.

Run Locally

The fastest way to test your changes is to run MattBot locally, forward its port, and update MattBot Dev's interactions endpoint URL to that forwarded port.

  1. cp .example.env .env
  2. Visit MattBot Dev on the Discord Developer Portal
  3. Update .env with MattBot Dev's information
  4. npm install
  5. npm run dev
  6. Forward the port
  7. Set MattBot Dev's endpoint URL on the Discord Developer Portal

Deploy to Staging

You can use mattbot-dev to test your changes in a real Azure Functions app.

  1. az login
  2. npm install
  3. npm run publish:dev
  4. Set MattBot Dev's endpoint URL to https://mattbot-dev.azurewebsites.net/api/interaction on the Discord Developer Portal

Deploy to Production

You can use the Release MattBot action to trigger a new production release. This action uses an Azure service principal to deploy mattbot globally for all Discord users.

mattbot's People

Contributors

jungaretti avatar

Watchers

 avatar  avatar

mattbot's Issues

The bot uses the wrong Matt

This is probably a typo or something, but the bot appears to only give movies for somebody named Matthew MacOnahey? I'm assuming the intention was to give movies for

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.