Git Product home page Git Product logo

assettobot's Introduction

assettobot

img123 img321 discord

A updated Version from SRP-Bot with the latest Discord.js

With /serveradd you can add a Status-Embed.

With /leaderboardadd you can add a Leaderboard-Embed

Configuration

token = Your Secret Bot Token
clientId = Client ID from your Bot
guildId = Guild ID to deploy the Commands
botId = The User Bot ID (right click the bot and copy the id in discord)
configChannels = Channels for monitoring the messages
allowedRole = which role can use the commands

Installation

Install NodeJS, you can find it here

Clone the Repository and install all Packages.

git clone https://github.com/lucxsm/assettobot.git
npm install

Configure the Configfile and then deploy the Commands.

cd src
node deploy_commands.js

Then you can start the Bot with

cd ..
node src/index.js

Normally it should be showing now a "Connected". Then you are good to go.

Commands

With /serveradd you can add a Embed.

/serveradd Channel-ID Embedtitle Serveraddress Countrycode Description

The country code is two digits (de, us, nl,...) If your Country is missing, you can add this in the nationalities.js

The Serveraddress must be like 127.0.0.1:8084 (IP:PORT)

/leaderboardadd

This Command is currently work in progress

Customize

To customize the Embed, you can edit the serverinfo.js

Example Embeds

Example2

Example

Original Version

Github: christian-kth/srp-bot

assettobot's People

Contributors

lucxsm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

assettobot's Issues

More Information On How Bot Works

I've managed to get the bot Online but have no clue what to do after using your / commands doesn't work could u please provide a more in-depth tutorial or video tutorial

Can't deploy commands or start the bot up. any ideas?

Error: Cannot find module 'node:events'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/ubuntu/assettobot/node_modules/discord.js/src/client/BaseClient.js:3:22)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)

Cannot read properties of null (reading 'name')

Hello,
I wanted to try the bot but it stop working after few minutes with this error :

/home/ubuntu/bot/assettobot/src/scheduler.js:44
        if (embed && embed.author.name.startsWith('Leaderboard')) {
                                  ^

TypeError: Cannot read properties of null (reading 'name')
    at /home/ubuntu/bot/assettobot/src/scheduler.js:44:35
    at Array.filter (<anonymous>)
    at Object.updateLeaderboards (/home/ubuntu/bot/assettobot/src/scheduler.js:40:39)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Timeout._onTimeout (/home/ubuntu/bot/assettobot/src/index.js:71:5)

However, I managed to add a server with the "addserver" command before it stopped and I received a message successfully created in my discord channel.
Am i missing something or doing something wrong? Thank you for your help !

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.