Giter Site home page Giter Site logo

livequery's Introduction

LiveQuery

showcase

LiveQuery is a program that is used to fetch messages sent on Source game servers and post them to a Discord channel.

Requirements

  • Node.js and npm. If you are running Linux, you should use nvm. If you are running Windows, you should probably use nvm-windows or install Node and npm through chocolatey.

Setup

Setup is unnecessarily complicated until I streamline the process.

  1. Run npm install.
  2. Run cd bot and node setup.js --token='yourToken' --channelID='yourChannelID'. Make sure you are in the same directory as setup.js before running the node setup.js command.
  3. Invite the bot to your server. This image will show you how to do it. If you don't have a bot client created already, you can create one on the Discord Developers page.
  4. Make sure your bot has access to the channel.
  5. Run npm run main. Run this under a screen so the bot doesn't shut down when you exit your shell session.
  6. Install the corresponding plugin to your server:
  7. Configure the plugin. For Clockwork, you just need to change the server variable in sh_plugin.lua to whatever the IP or hostname the bot is running on is. Additionally, make sure the port appended to the IP/hostname is correct. It is 25050 by default.

The bot was created with Discord.js v11. v12 introduced breaking changes, so it may not work. If you need a v11 version of Discord.js, you can use npm i [email protected].

Known Bugs

  • You get a JSON parse error whenever someone sends a message containing quotes ("").

livequery's People

Contributors

dependabot[bot] avatar kiobu avatar

Watchers

 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.