Git Product home page Git Product logo

glr-bot's Introduction

GLR-bot

DEPRECATED, this will no longer be used since I moved the project to: GLRDiscordBot. Reason behind this is so I could use This Template to build off of. This will make development easier long-term wise.

Invite

If you want the bot in your server, without hosting it yourself, click on either link below.

Link with required permissions

https://discordapp.com/api/oauth2/authorize?client_id=696342679012900894&permissions=378944&scope=bot

Link with all permissions (recommended)

https://discordapp.com/api/oauth2/authorize?client_id=696342679012900894&permissions=8&scope=bot

Install & Use

If you want to host the bot yourself locally, so you can add custom commands and have a custom name / avatar, you can follow the steps below.

Prerequisites

  • VPS / local server
  • commandline access (preferably admin/sudo access)
  • dotnet installed
  • git installed
  • screen installed (if more experienced, set it up as a service)

Installation

First, you'll need to clone the github repo:

git clone https://github.com/svr333/GLR-bot.git

This will be cloned wherever your commandline was, change your commandline location by doing cd location/to/go/to and then clone

Once this is done, you'll have a folder called GLR-bot with all the source files in there. After cloning, head in to the folder by executing

cd GLR-bot

Now, you can edit the code freely, though if you want to do that it's best to fork and then clone, but I'm not explaining that.

No we will publish the app so it's in a single file, and easy to run. To publish, execute this command:

dotnet publish src/GLR.Core/GLR.Core.csproj -c Release -r <RuntimeID> /p:PublishSingleFile=true

Maybe I'll one day make it so you don't have to do this and can just download the release file. Might be better.

You have to replace <RuntimeID> with whatever you want to publish the bot on. A list of <RuntimeID's> can be found here.

Your files are outputted to ./src/GLR.Core/bin/release/netcoreapp3.1/<RuntimeID>/publish

I'd move the files to a different folder by using the
mv from/path to/path
command, however that isn't necessary.

On linux, you need to give the output file called GLR.Core execution permission, by executing chmod +x path/to/GLR.Core

Once that's done you can run it by doing ./path/to/GLR.Core and all is done, however, if you want to logout of your remote session tahat you use to connect to your server, you need to use screen or something that can do the same.

Once you have screen installed, just do:

screen -dmS GLR-bot ./path/to/GLR.Core

I recommend watching a tutorial on screen to figure out how it works exactly.

On Windows / mac: Install linux and follow the steps above.
This is a very brief explanation and I didn't spend too much time on it, you'll probably have to look a few things up, but the gist is there. I also don't think it is necessary to build the bot yourself, since it is still in development and not the most stable.
Also, yes, this paragraph is only done so this file has 69 lines of 'code'.

glr-bot's People

Contributors

svr333 avatar

Stargazers

 avatar

Watchers

 avatar  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.