Discord.js , Rip Efekti | Wasted Efekti | Hapishane Efekti

Katılım
10 Kas 2019
Konular
225
Mesajlar
1,057
Çözümler
19
Tepki puanı
1,048
Puanları
8,710
Discord.js.png


Bu komutları eğlence komutlarınızın arasına yerleştirebilirsiniz.
Bu kodlamalar sayesinde profilinize değişik efektler verebilirsiniz

Kullanım; {prefix}wasted
(örn; a.wasted)

Komutlar
bölümüne atın.
wasted.png
Kod:
var Jimp = require('jimp');
const Discord = require('discord.js');

exports.run = async (bot, message, args) => {

  var user = message.mentions.users.first() || message.author;
      message.channel.startTyping();
        var user = message.mentions.users.first() || message.author;
        if (!message.guild) user = message.author;

        Jimp.read(user.avatarURL, (err, image) => {
            image.resize(295, 295)
            image.greyscale()
            image.gaussian(3)
            Jimp.read("https://cdn.glitch.com/b18a2fa6-68cb-49d5-9818-64c50dd0fdab%2F1.png?1529363616039", (err, avatar) => {
                avatar.resize(295, 295)
                image.composite(avatar, 4, 0).write(`./img/wasted/${bot.user.id}-${user.id}.png`);
                setTimeout(function() {
                    message.channel.send(new Discord.Attachment(`./img/wasted/${bot.user.id}-${user.id}.png`));
                }, 1000);
          message.channel.stopTyping();
            });
        });
    };

exports.conf = {
  enabled: true,
  guildOnly: false,
  aliases: [],
  permLevel: 0
};

exports.help = {
  name: 'wasted',
  description: 'wasted',
  usage: 'wasted'
};


Kullanım; {prefix}rip
(örn; a.rip)


Komutlar
bölümüne atın.
efekt-2.png
Kod:
const Discord = require("discord.js");
var Jimp = require('jimp');

exports.run = async (client, message, args) => {
    var user = message.mentions.users.first() || message.author;
    if (!message.guild) user = message.author;
Jimp.read('https://cdn.pixabay.com/photo/2013/07/13/12/32/tombstone-159792_960_720.png', (err, image) => {
    image.resize(310, 325)
    //image.greyscale()
    //image.gaussian(3)
    Jimp.read(user.avatarURL, (err, avatar) => {
        avatar.resize(100, 100)
        image.composite(avatar, 95, 159).write(`./img/rip/${client.user.id}-${user.id}.png`);
        setTimeout(function() {
            message.channel.send(new Discord.Attachment(`./img/rip/${client.user.id}-${user.id}.png`));
        }, 1000);
    });

});
}
exports.conf = {
enabled: true,
guildOnly: false,
aliases: ['rıp'],
permLevel: 0
};

exports.help = {
name: 'rip',
description: 'Profil fotoğrafınıza RIP efekti ekler.',
usage: 'rip'
};


Kullanım; {prefix}hapishane
(örn; a.hapishane)


Komutlar
bölümüne atın.
hapishane.png

Kod:
const Discord = require('discord.js');
var Jimp = require('jimp');

module.exports.run = async (bot, message, args) => {

  var user = message.mentions.users.first() || message.author;
      message.channel.startTyping();
        var user = message.mentions.users.first() || message.author;
        if (!message.guild) user = message.author;

        Jimp.read(user.avatarURL, (err, image) => {
            image.resize(295, 295)
            image.greyscale()
            image.gaussian(1)
            Jimp.read("https://media.discordapp.net/attachments/552249354002628619/554073124279156748/prison_PNG29.png?width=300&height=300", (err, avatar) => {
                avatar.resize(295, 295)
                image.composite(avatar, 0, 0).write(`./img/hapishane/${bot.user.id}-${user.id}.png`);
                setTimeout(function() {
                    message.channel.send(new Discord.Attachment(`./img/hapishane/${bot.user.id}-${user.id}.png`));
                }, 1000);
          message.channel.stopTyping();
            });
        });
    };

exports.conf = {
  enabled: true,
  guildOnly: false,
  aliases: [],
  permLevel: 0
};

exports.help = {
  name: 'hapishane',
  description: 'Hapishane efekti',
  usage: 'hapishane'
};
 
Son düzenleme:
Katılım
27 Eki 2020
Konular
0
Mesajlar
1
Tepki puanı
0
Puanları
0
(node:45252) UnhandledPromiseRejectionWarning: Error: No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.
at Jimp.throwError (C:\Users\LENOVO\Desktop\Faruk\bot\node_modules\@jimp\utils\dist\index.js:33:13)
at new Jimp (C:\Users\LENOVO\Desktop\Faruk\bot\node_modules\@jimp\core\dist\index.js:412:85)
at _construct (C:\Users\LENOVO\Desktop\Faruk\bot\node_modules\@babel\runtime\helpers\construct.js:19:21)
at C:\Users\LENOVO\Desktop\Faruk\bot\node_modules\@jimp\core\dist\index.js:926:32
at new Promise (<anonymous>)
at Function.Jimp.read (C:\Users\LENOVO\Desktop\Faruk\bot\node_modules\@jimp\core\dist\index.js:925:10)
at Object.run (C:\Users\LENOVO\Desktop\Faruk\bot\komutlar\wasted.js:16:16)
at module.exports.message (C:\Users\LENOVO\Desktop\Faruk\bot\node_modules\proton-io\index.js:130:21)
at Client.<anonymous> (C:\Users\LENOVO\Desktop\Faruk\bot\index.js:26:16)
at Client.emit (events.js:314:20)
(node:45252) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:45252) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
bu hatayı alıyorum :(
 
Katılım
11 Ara 2020
Konular
0
Mesajlar
3
Tepki puanı
0
Puanları
355
en istediğim komut bunlar ama çalışmıyo kafayı yicem ya
 
Katılım
16 Mar 2021
Konular
0
Mesajlar
1
Tepki puanı
0
Puanları
705
(node:45252) UnhandledPromiseRejectionWarning: Error: No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.
at Jimp.throwError (C:\Users\LENOVO\Desktop\Faruk\bot\node_modules\@jimp\utils\dist\index.js:33:13)
at new Jimp (C:\Users\LENOVO\Desktop\Faruk\bot\node_modules\@jimp\core\dist\index.js:412:85)
at _construct (C:\Users\LENOVO\Desktop\Faruk\bot\node_modules\@babel\runtime\helpers\construct.js:19:21)
at C:\Users\LENOVO\Desktop\Faruk\bot\node_modules\@jimp\core\dist\index.js:926:32
at new Promise (<anonymous>)
at Function.Jimp.read (C:\Users\LENOVO\Desktop\Faruk\bot\node_modules\@jimp\core\dist\index.js:925:10)
at Object.run (C:\Users\LENOVO\Desktop\Faruk\bot\komutlar\wasted.js:16:16)
at module.exports.message (C:\Users\LENOVO\Desktop\Faruk\bot\node_modules\proton-io\index.js:130:21)
at Client.<anonymous> (C:\Users\LENOVO\Desktop\Faruk\bot\index.js:26:16)
at Client.emit (events.js:314:20)
(node:45252) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:45252) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
bu hatayı alıyorum :(
sanırım jimp modülü yok