Compare commits
2 commits
8bc970eac8
...
60065159e5
Author | SHA1 | Date | |
---|---|---|---|
60065159e5 | |||
ce50dee3df |
2 changed files with 3 additions and 2 deletions
|
@ -40,8 +40,8 @@ class userBlacklistCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec(message, args) {
|
async exec(message, args) {
|
||||||
const blacklist = await Blacklists.findOne({where: {type:args.command, uid:message.author.id}});
|
const blacklist = await Blacklists.findOne({where: {type:args.command, uid:args.userID}});
|
||||||
|
console.log(blacklist);
|
||||||
if (!blacklist) {
|
if (!blacklist) {
|
||||||
const body = {type:args.command, uid: args.userID, reason: args.reason};
|
const body = {type:args.command, uid: args.userID, reason: args.reason};
|
||||||
Blacklists.create(body);
|
Blacklists.create(body);
|
||||||
|
|
|
@ -53,6 +53,7 @@ class vid2gifCommand extends Command {
|
||||||
|
|
||||||
if (args.scale) ffmpegCommand.videoFilters('scale=iw/2:ih/2');
|
if (args.scale) ffmpegCommand.videoFilters('scale=iw/2:ih/2');
|
||||||
ffmpegCommand.fps(args.fps ? args.fps : 15);
|
ffmpegCommand.fps(args.fps ? args.fps : 15);
|
||||||
|
ffmpegCommand.videoFilters('fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse');
|
||||||
ffmpegCommand.output(`${os.tmpdir()}/${message.id}v2g.gif`);
|
ffmpegCommand.output(`${os.tmpdir()}/${message.id}v2g.gif`);
|
||||||
ffmpegCommand.run();
|
ffmpegCommand.run();
|
||||||
ffmpegCommand.on('error', (err, stdout, stderr) => {
|
ffmpegCommand.on('error', (err, stdout, stderr) => {
|
||||||
|
|
Loading…
Reference in a new issue