Coder Social home page Coder Social logo

sawayo's Introduction


Sawayo

CodeFactor
JavaScript Style Guide
Translations: Traditional Chinese 繁體中文

Sawayo, a discord bot for osu!
This is a dev personal repository of Sawayo bot.
Sawayo offical repository
Project progress
The bot is still in development, will need more time for the project.

Introduction

This bot is built on discord.js v12, commands like check osu!osu info or more.

Index

Setup

Project-info

Set-up & Preparation

Clone the git project:

$ git clone https://github.com/Naozumi520/Sawayo.git

This project uses node and npm. Use the following command if you don't have them locally installed.

$ cd Sawayo/
$ npm install

Example gif

Before starting the bot, you will need to create a file called "config.json" under the root directory of the project.
You will also need to configure the emoji ID in emoji_config.json.

Sample config.json

{
     "token" : "8ld6ZJcDYNRFyswDaNotarealtokenls7UYkyUjHlGvMdg7X", 
     "apikey": "DkyUjHldyU6RFyNotarealtokenswDalkyUdyU6Y",
     "prefix" : "s!",
       "admin_role" : "754726868673946891",
 
     "activities": [
         { "type": "PLAYING", "text": "osu!" },
         { "type": "LISTENING", "text": "osu!memories 2" },
         { "type": "PLAYING", "text": "with circles" }
         ],
          "activities_Interval" : "6000",
          
"database": {
    "host": "localhost",
    "username": "root",
    "password": "",
    "database": "sawayo",
    "connectionLimit": 50
  }
}

Sample emoji_config.json

{
"error": "<:error:759791498279125042>",
"SSH": "<:SSH:759435267383361536>",
"SS": "<:SS:759435267181510736>",
"SH": "<:SH:759435267357540382>",
"S": "<:S_:759435267316252693>",
"A": "<:A_:759435267404070922>",
"hit50": "<:h50:759435458555412480>",
"hit100": "<:h100:759435459671359558>",
"hit300": "<:h300:759435458584510544>"
}

Once the preparation is done, the project directory should look like the following:

+ Sawayo
  + commands
    - commands1.js
    - commands2.js
    - commands3.js
    - commands4.js
  + files
    + images
     - Sawayo_banner.png
  + lib
    - database.js
  + node_modules
    - modules
  - index.js
  - package.json
  - config.json

To start the bot:

$ node index
 - start.bat     --start bot windows batch file
 - start-nodemon.bat     --start bot with nodemon batch file

Using api

Commands

User-profile:

 - osuset     --s!osuset <username>
 - std     --s!std <username>
 - taiko     --s!taiko <username>
 - ctb     --s!ctb <username>
 - mania     --s!mania <username>

Miscellaneous:

 - urban     --s!urban <words>
 - google     --s!google <things> <- Not work, will fix it soon

Admin-commands

 - mute     --s!mute <mentions_user> <time (could be 1s,1m,1h, 10000(ms))>
 - ban     --s!ban <mention_user> <reasons(Optional)>
 - kick     --s!kick <mention_user> <reasons(Optional)>

Contributors

veeeleven (v11)
Naozumi520
ItzTheLT

picture

Our discord

Things need to do

More Commands.
Admin related stuff for Discord Server Moderations.

Feel free to contribute to this project.

Donate

v11: https://paypal.me/jammielannie

sawayo's People

Contributors

naozumi520 avatar

Stargazers

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