Code Monkey home page Code Monkey logo

dismix-discord-bot's Introduction

90Pixel

Dismix Bot

Description

You can listen to music on youtube, write channel messages to a file and see user logs.

Installation

Builded with NestJS

$ https://github.com/90pixel/dismix-discord-bot
$ cd dismix-discord-bot
$ npm install

Fill the .env variables and setup your db for logs and new feautres

Docker soon.

Running the app

# dev mode
$ npm run start:dev

# production mode
$ npm run start:prod

Alternative

$ pm2 startOrRestart ecosystem.config.js --only dismix-bot-`$env` --env `$env` && pm2 save

Permissions

  • Application uses slash commands. So you have to applications.commands enabled.

Deploying Commands

Note: Only bot author can do this command.

Before using bot with music feature, you have to deploy commands to your Discord Server. Use !deploy command to do.

After use !deploy command you can see commands by typing a slash

Features & Commands

Slash Commands

  • Play music with given YouTube Url

/play YouTubeURL

  • Show queued list

/queue

  • Skip current song

/skip

  • Pause current song

/pause

  • Resume current song

/resume

  • Leave from channel

/leave

Prefixed Commands !

  • You can check user presence updates with setting a log channel for it. Only bot author can do it. Basically you can get the channel id by clicking channel with right click then copy the ID.

!log-channel {$channelId}

Either way you can update your log channel too.

After create a log channel, you will able to see presence updates with their time.

  • You can set log status active or passive

!logs active

!logs passive

  • Show Online & Offline Members

!online-members

!offline-members

  • Send private message to mentioned users. !send-message [message] @Shanks @.. @.. @..

  • History of a channel as json and save the root directory

!history

[
    {
        "username": "Shanks",
        "timestamp": "23/09/2021 - 02:44:25 AM",
        "content": "!history"
    },
    {
        "username": "Biohazard",
        "timestamp": "23/09/2021 - 02:31:49 AM",
        "content": "Hello!"
    },
    {
        "username": "Shanks",
        "timestamp": "23/09/2021 - 02:12:02 AM",
        "content": "!deploy"
    }
]

Contributing

Feel free the pull request.

Author

Çağrı Sungur - Part of 90Pixel Team

License

This project is licensed under the MIT License - see the LICENSE.md file for details

dismix-discord-bot's People

Contributors

cagrisungur avatar

Stargazers

 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.