ghost-devs.js

2.2.3 • Public • Published

ghost-devs.js

İndirme:

  • npm i ghost-devs.js

Örnek Matematik Kodu:

const { Client } = require('discord.js');
const { Matematik } = require('ghost-devs.js');
const client = new Client();

client.on('ready', async () => {
  console.log('ready');
});

client.on('message', async (message) => {
  var args = message.content.split(" ");
  if (args[0] == "!topla") {
    var math = new Matematik();
    math.toplama("100", "10", message.channel);
  };
});

client.on('message', async (message) => {
  var args = message.content.split(" ");
  if (args[0] == "!çıkar") {
    var math = new Matematik();
    math.çıkarma("100", "10", message.channel);
  };
});

client.on('message', async (message) => {
  var args = message.content.split(" ");
  if (args[0] == "!çarp") {
    var math = new Matematik();
    math.çarpma("100", "10", message.channel);
  };
});

client.on('message', async (message) => {
  var args = message.content.split(" ");
  if (args[0] == "!böl") {
    var math = new Matematik();
    math.bölme("100", "10", message.channel);
  };
});

client.login(process.env.token);

Telif Hakkı:

Readme

Keywords

Package Sidebar

Install

npm i ghost-devs.js

Weekly Downloads

0

Version

2.2.3

License

ISC

Unpacked Size

7.33 kB

Total Files

6

Last publish

Collaborators

  • ghostdevelopment