Giter VIP home page Giter VIP logo

merlinbot's Introduction

MerlinBot

Discord bot written with Java running on repl.it. Hopefully we can get this up and running.

Dependencies

Create a .env file in your repl.it (if you forked this) with the following:

DISCORD_TOKEN=<your bot's token>

How to Edit

This project consists of 2 parts:

  • A webserver to make sure repl.it keeps our bot alive. This consists of two java classes (both in Main.java) and a few of maven packages.
  • A discord bot (Bot.java) which already has the onMessageReceived event handler set up.

WTF - Why is there a webserver here?

In order for repl.it to keep our bot alive and not kill it when we close replit. There's a monitor on https://uptimerobot.com/ to ping this repl.it's web url (https://MerlinBot--fizal619.repl.co) every 23 minutes.

Repl.it is complaining about not finding packages. What do?

In a case like that, the bot probably needs to grab packages again from the internet. But repl.it needs to do this. The simplest way to make repl.it do this is to edit the <version> entry in the pom.xml file. This will make repl.it re-resolve dependencies again and allow the bot to start.

Resources:

merlinbot's People

Contributors

fizal619 avatar

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.