GithubHelp home page GithubHelp logo

socuul / giveawaybot Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 14.0 29 KB

GiveawayBot is a simple and customizable self-hosted giveaway bot for discord.

JavaScript 99.37% Batchfile 0.42% Shell 0.21%
discord-bot discord-js giveaway-bot giveaways

giveawaybot's Introduction

Hi, I'm SoCuul!

I'm a Canadian developer, who's currently a student. I am most fluent in the node.js ecosystem, with the use of TypeScript. I love coding random projects, or creating utilities to make my life easier.

As of recently, I've been tinkering in other languages such as Objective-C.

๐Ÿ“ฉ Links

+ Site: socuul.dev
+ Twitter: @SoVeryCuul
+ Reddit: u/emojimasteryt
+ Twitch: verycuul
+ Discord (personal, not for support): @socuul
+ Email: [email protected]
+ API Status: https://socuul.dev/status

๐Ÿ’ป Tech Stack

Tech Stack

๐Ÿ“Š Stats

SoCuul's GitHub stats

๐Ÿ’ธ Donate

If you'd like to support my work, feel free to buy me a coffee!

giveawaybot's People

Contributors

bl1428 avatar dependabot[bot] avatar socuul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

giveawaybot's Issues

No winners

When the giveaway ends, this shows- Giveaway cancelled, no valid participations.
Even though there were a couple of reactions.
Any fix for that?

bug

(node:66196) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
embed.fields[0].name: Must be 256 or fewer in length.
at RequestHandler.execute (C:\Users\user\Downloads\GiveawayBot-main\GiveawayBot-main\node_modules\discord.js\src\rest\RequestHandler.js:154:13)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async RequestHandler.push (C:\Users\user\Downloads\GiveawayBot-main\GiveawayBot-main\node_modules\discord.js\src\rest\RequestHandler.js:39:14)
(Use node --trace-warnings ... to show where the warning was created)
(node:66196) 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:66196) [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.

how to fix this in cmd

(node:15984) UnhandledPromiseRejectionWarning: options.winnerCount is not a positive integer. (val=2)
(Use node --trace-warnings ... to show where the warning was created)
(node:15984) 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:15984) [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.

i have a issue

the issue is not with this GiveawayBot code code is very good but I changed up the code and after changing it was working well on repl.it but when I tried to run this on heroku it showed up a error
i tried to host it on heroku but when I type node index.js then it throws a error

Error: Cannot find module 'mongoose'
2021-08-13T02:56:40.394255+00:00 app[Worker.1]: Require stack:
2021-08-13T02:56:40.394255+00:00 app[Worker.1]: - /app/index.js
2021-08-13T02:56:40.394256+00:00 app[Worker.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
2021-08-13T02:56:40.394256+00:00 app[Worker.1]: at Function.Module._load (internal/modules/cjs/loader.js:745:27)
2021-08-13T02:56:40.394256+00:00 app[Worker.1]: at Module.require (internal/modules/cjs/loader.js:961:19)
2021-08-13T02:56:40.394257+00:00 app[Worker.1]: at require (internal/modules/cjs/helpers.js:92:18)
2021-08-13T02:56:40.394257+00:00 app[Worker.1]: at Object. (/app/index.js:10:18)
2021-08-13T02:56:40.394257+00:00 app[Worker.1]: at Module._compile (internal/modules/cjs/loader.js:1072:14)
2021-08-13T02:56:40.394257+00:00 app[Worker.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
2021-08-13T02:56:40.394258+00:00 app[Worker.1]: at Module.load (internal/modules/cjs/loader.js:937:32)
2021-08-13T02:56:40.394258+00:00 app[Worker.1]: at Function.Module._load (internal/modules/cjs/loader.js:778:12)
2021-08-13T02:56:40.394258+00:00 app[Worker.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) {
2021-08-13T02:56:40.394259+00:00 app[Worker.1]: code: 'MODULE_NOT_FOUND',
2021-08-13T02:56:40.394259+00:00 app[Worker.1]: requireStack: [ '/app/index.js' ]

but I installed mongoose but idk why it shows this error on heroku

config.json reaction

What do I set as "reaction" : " ". I tried the emoji with and without colons (:tada: and tada).

I got this error:

(node:1261) UnhandledPromiseRejectionWarning: DiscordAPIError: Unknown Emoji at RequestHandler.execute (/home/runner/GiveawayBot/node_modules/discord.js/src/rest/RequestHandler.js:154:13) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async RequestHandler.push (/home/runner/GiveawayBot/node_modules/discord.js/src/rest/RequestHandler.js:39:14) (node:1261) 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:1261) [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

Pls help

Can't start giveways

I can't start giveways i added the givewayrole like this: <@&925054694643073076> but it doesnt work

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.