Coder Social home page Coder Social logo

example-bot's Introduction

Javacord Example Bot Javacord Wiki Discord Server

This bot is an example for the Javacord library.

Features

The bot currently supports the following commands:

  • !copyAvatar Sets the avatar of the bot to the avatar of the user who used this command. This command can only be used by the creator of the bot. You can find the implementation here: CopyAvatarCommand.java
  • !userInfo Shows some basic information (id, name, etc.) about the user who used this command. You can find the implementation here: UserInfoCommand.java

Running the bot for testing

To run the bot right from Gradle (just for testing, not for production) you can do gradlew run --args your-bot-token-here. You can view the login process by looking at the Main.java class.

Building the bot for production

To get a distributable package you run gradlew distZip. The created zip is located at build/distributions/examplebot-1.0.0.zip and contains all necessary things to run the bot, except the token. Take a look at the build.gradle.kts file.

Running the bot for production

After you built the distributable package as described in the previous section, you can copy over the zip file to where you want to run your bot. There you unzip it whereever you like and run one of the included start scripts.

unzip examplebot-1.0.0.zip
cd examplebot-1.0.0
bin/examplebot your-bot-token-here

The log file will be created in a log directory where you execute the last command.

example-bot's People

Contributors

bastian avatar duckulus avatar kdaniel2410 avatar lainika avatar vampire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

example-bot's Issues

Add feature to play music

I would like to know if it is possible to add support for the example bot to play music, thank you.

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.