Code Monkey home page Code Monkey logo

aoi.js-template-v5-advanced's Introduction

Aoi.js Advanced V5 Template With A Website.

Introduction To Aoi.js

Aoi.js is a npm package that simplifies coding discord bots.

Made By Leref#0001.

Aoi.js Links: (you might need)

[USEAGE]

DO NOT use the code before reading this FULLY!!

Recomended host: replit.

Language: Javascript [Node.js / Bash]

Required Packages: Aoi.js (npm i aoi.js), Express (npm i express), Fs (npm i fs).

Start: npx node index.js or node index.js.

Credits: Leref for the aoi.js v5 on replit.

Setup:

  • Go to config.json.
  • Under bot_prefix add your bot prefix.
  • Under bot_description add your bot description. (Basically info which will show on the website.)
  • Under icon add your bots avatar link (.jpg or .png format!)
  • In your .env under the name "TOKEN" add your bot token.
  • Run the code.

Editing The Code:

Adding callbacks:

  • Go to callbacks.json.
{
  "callbacks":["bot.onMessage()","bot.onInteractionCreate()"]
}

Adding Status:

  • Go to /status/.
  • Add your status code in new file/replace the old status codes. For eg:
module.exports=({
  text:"Hello World!",//text in the status
  type:"PLAYING",// types: PLAYING,LISTENING,COMPETING, e.t.c.
  time:"12"// time is should show the status for. (not needed unless multiple statuses are being used.)
})

Adding variables:

  • Go to vars.js.
module.exports={
  dev:"Bumblebee#1447",
  /*
  Adding Variables: to add variables just do `<variable name> : "<variable value>",`
  */
}
  • Add (variable name):"(variable value)",

Adding Commands:

  • Go to ./commands/message commands/ folder.
  • Create a new js file. eg: "ban.js"
  • Add your code there. For eg:
module.exports ={
name:"ban",//command name
aliases:["bon"],//command alias
code:`
$title[1;BONNED!!]
$description[1;banned $userTag[$mentioned[1]]]
$ban[$mentioned[1];Banned By $userTag[$authorID]]`//code
}

Creating Slash Commands:

  • Go to slash.json file.
  • Add your slash command code there. For more info read the docs here.
  • Example:
{
  "slash":["$createApplicationCommand[858378652235071498;ping;ping pong ding dong🏓;true]","$createApplicationCommand[858378652235071498;hi;Say hi!;true]"]
}

Replying To The Slash Commands:

  • Go to ./commands/slash commands/ folder.
  • Create a new js file. eg: "hi.js"
  • Add your code there. For eg:
module.exports = ({
name: "hi",
type: "interaction",
prototype: "slash",
code: `$interactionReply[Hi <@$interactionData[author.id]> !;{newEmbed:{title:Hello!}{description:Hey man! Wassup?!}}]`

})

Website

Website Code is in ./website/dash.js. You can change the code in variable "a".

Having Node V16 issues?

paste this in shell:

npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH

To Do:

  • Add Slash Commands Handler.
  • Add A Basic Website Dashboard.
  • Added Staatus Handler

More Features Comming soon!

Made By: Bumblebee#1447 on discord.

It has taken me lots of time and effort to make this and a star would mean a lot to me! <3

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.