Giter VIP home page Giter VIP logo

calypsobot's Introduction



Calypso Discord Bot

A fully customizable bot built with discord.js

Calypso is undergoing a complete rewrite. What you see here is heavily WIP. You may be looking for the old (outdated) version of Calypso, here

calypsobot's People

Contributors

bonglad avatar dependabot[bot] avatar sabattle 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

calypsobot's Issues

npm Install

charliemallia@Charlies-Air CalypsoBot-develop % Npm install

[email protected] install /Users/charliemallia/Downloads/CalypsoBot-develop/node_modules/better-sqlite3
prebuild-install || npm run build-release

prebuild-install WARN install No prebuilt binaries found (target=14.16.1 runtime=node arch=x64 libc= platform=darwin)

[email protected] build-release /Users/charliemallia/Downloads/CalypsoBot-develop/node_modules/better-sqlite3
node-gyp rebuild --release

No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Darwin 20.4.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /Users/charliemallia/Downloads/CalypsoBot-develop/node_modules/better-sqlite3
gyp ERR! node -v v14.16.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build-release: node-gyp rebuild --release
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build-release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/charliemallia/.npm/_logs/2021-05-08T18_35_05_998Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: prebuild-install || npm run build-release
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/charliemallia/.npm/_logs/2021-05-08T18_35_06_385Z-debug.log

I can't start the bot

node:internal/modules/cjs/loader:927
throw err;
^

Error: Cannot find module 'discord.js'
Require stack:

  • C:\Users\szyme\Desktop\Discord js bots\CalypsoBot-develop\src\Client.js
  • C:\Users\szyme\Desktop\Discord js bots\CalypsoBot-develop\app.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15)
    at Function.Module._load (node:internal/modules/cjs/loader:769:27)
    at Module.require (node:internal/modules/cjs/loader:996:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object. (C:\Users\szyme\Desktop\Discord js bots\CalypsoBot-develop\src\Client.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1092:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
    at Module.load (node:internal/modules/cjs/loader:972:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:996:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\Users\szyme\Desktop\Discord js bots\CalypsoBot-develop\src\Client.js',
    'C:\Users\szyme\Desktop\Discord js bots\CalypsoBot-develop\app.js'
    ]
    }

Prefix

Amazing bot from what I can see already, but one issue, I am unable to test it at all because I can't find the standard prefix in code to change it to !, also in db.js do I fill out all this?
Screen Shot 2020-08-27 at 7 34 14 PM

Prefix?

What is the default prefix? Am I just blind? Please respond!

429 error

I am getting ratelimit on route bothosting tell me what to do

Help shows bot owner commands

Sir,
The help command shows the bot owner commands i dont want it to be shown please help me with the issue
Regards

Prefix

Please, add to the README.md a line about the default prefix.
It took me quite some time to find out it is c!

Crown

How can I remove or disable by default the system "The Crown" ?

Installation error

When it tries to install better-sqlite3 there is an error message.

> [email protected] install C:\Users\Vinod Krishnan\Desktop\TheImperialGod-main\CalypsoBot\node_modules\better-sqlite3
> prebuild-install || npm run build-release

prebuild-install WARN install No prebuilt binaries found (target=14.15.1 runtime=node arch=x64 libc= platform=win32)

> [email protected] build-release C:\Users\Me\Desktop\CalypsoBot\node_modules\better-sqlite3
> node-gyp rebuild --release

C:\Users\Me\Desktop\CalypsoBot\node_modules\better-sqlite3>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --release )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild --release )
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find Python 2
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Python27\python.exe
gyp ERR! find Python - "C:\Python27\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Python37\python.exe
gyp ERR! find Python - "C:\Python37\python.exe" could not be run
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python   (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python   npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack     at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47)
gyp ERR! stack     at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16)
gyp ERR! stack     at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16)
gyp ERR! stack     at exithandler (child_process.js:315:5)
gyp ERR! stack     at ChildProcess.errorhandler (child_process.js:327:5)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! stack     at onErrorNT (internal/child_process.js:465:16)
gyp ERR! stack     at processTicksAndRejections (internal/process/task_queues.js:80:21)
gyp ERR! System Windows_NT 10.0.18363
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build-release: `node-gyp rebuild --release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build-release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Me\AppData\Roaming\npm-cache\_logs\2021-01-23T10_49_32_328Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `prebuild-install || npm run build-release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Me\AppData\Roaming\npm-cache\_logs\2021-01-23T10_49_32_819Z-debug.log

Can't install bettersqlite3

When I try to run npm i better-sqlite3, command prompt just shows a bunch of errors and won't install it. How can I fix it?

start-up error

`2020-12-19 17:06:44 - info [app.js]: Initializing...
2020-12-19 17:06:44 - info [app.js]: Loading commands...
C:\Users*****\OneDrive\Desktop\DesktopStuff Screen 2\Discord Bots\CalypsoBot-develop\src\Client.js:144
const command = new Command(this); // Instantiate the specific command
^

TypeError: Command is not a constructor
at C:\Users*\OneDrive\Desktop\DesktopStuff Screen 2\Discord Bots\CalypsoBot-develop\src\Client.js:144:25
at Array.forEach ()
at C:\Users*
\OneDrive\Desktop\DesktopStuff Screen 2\Discord Bots\CalypsoBot-develop\src\Client.js:142:16
at Array.forEach ()
at Client.loadCommands (C:\Users*\OneDrive\Desktop\DesktopStuff Screen 2\Discord Bots\CalypsoBot-develop\src\Client.js:140:56)
at init (C:\Users*
\OneDrive\Desktop\DesktopStuff Screen 2\Discord Bots\CalypsoBot-develop\app.js:22:10)
at Object. (C:\Users*****\OneDrive\Desktop\DesktopStuff Screen 2\Discord Bots\CalypsoBot-develop\app.js:27:1)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)`

Fix the intents in app.js

USE THIS CODE INSTEAD FOR app.js:

const Client = require('./src/Client.js');
const { Intents } = require('discord.js');

global.__basedir = __dirname;

// Client setup
const intents = new Intents();
intents.add(
  'GUILDS',
  'GUILD_VOICE_STATES',
  'GUILD_MESSAGES',
  'GUILD_MESSAGE_REACTIONS'
);
const client = new Client(config, { ws: { intents: intents } });

// Initialize client
function init() {
  client.loadEvents('./src/events');
  client.loadCommands('./src/commands');
  client.loadTopics('./data/trivia');
  client.login(client.token);
}

init();

process.on('unhandledRejection', err => client.logger.error(err));```

Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.

(node:16868) UnhandledPromiseRejectionWarning: Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
    at WebSocketManager.createShards (C:\Users\NiNj4HAX\Desktop\Dev Bot Project\NiNj4HAX\node_modules\discord.js\src\client\websocket\WebSocketManager.js:260:15)
(node:16868) 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:16868) [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.

Start error

G:\5\node_modules\better-sqlite3\lib\database.js:32
throw new TypeError('Cannot open database because the directory does not exist');
^

TypeError: Cannot open database because the directory does not exist
at new Database (G:\5\node_modules\better-sqlite3\lib\database.js:32:9)
at Object. (G:\5\src\utils\db.js:2:12)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at new Client (G:\5\src\Client.js:30:15)
at Object. (G:\5\app.js:17:16)

I dont know why its giving me this error

What type of google api do i need?

What type of google api will i need for the bot like music bots use a youtube data v3 api and etc just wondering what api i use for this bot?

Module error

at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/home/container/app.js:1:16)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/home/container/app.js' ]
}
I have all the dependies installed tho??

start error

    URL: wss://gateway.discord.gg
    Recommended Shards: 1
2021-06-06 11:14:52 - debug [app.js]: [WS => Manager] Session Limit Information
    Total: 1000
    Remaining: 997
2021-06-06 11:14:52 - debug [app.js]: [WS => Manager] Spawning shards: 0
2021-06-06 11:14:52 - debug [app.js]: [WS => Shard 0] [CONNECT]
    Gateway    : wss://gateway.discord.gg/
    Version    : 6
    Encoding   : json
    Compression: none
2021-06-06 11:14:52 - debug [app.js]: [WS => Shard 0] Setting a HELLO timeout for 20s.
2021-06-06 11:14:52 - debug [app.js]: [WS => Shard 0] [CONNECTED] wss://gateway.discord.gg/?v=6&encoding=json in 156ms
2021-06-06 11:14:52 - debug [app.js]: [WS => Shard 0] Clearing the HELLO timeout.
2021-06-06 11:14:52 - debug [app.js]: [WS => Shard 0] Setting a heartbeat interval for 41250ms.
2021-06-06 11:14:52 - debug [app.js]: [WS => Shard 0] [IDENTIFY] Shard 0/1
2021-06-06 11:14:52 - debug [app.js]: [WS => Shard 0] [CLOSE]
    Event Code: 4014
    Clean     : true
    Reason    : Disallowed intent(s).
2021-06-06 11:14:52 - debug [app.js]: [WS => Shard 0] Clearing the heartbeat interval.
2021-06-06 11:14:52 - debug [app.js]: [WS => Shard 0] DISALLOWED_INTENTS
2021-06-06 11:14:52 - debug [app.js]: [WS => Manager] Manager was destroyed. Called by:
Error: MANAGER_DESTROYED
    at WebSocketManager.destroy (/home/runner/CalypsoBot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:333:54)
    at Client.destroy (/home/runner/CalypsoBot/node_modules/discord.js/src/client/Client.js:236:13)
    at Client.login (/home/runner/CalypsoBot/node_modules/discord.js/src/client/Client.js:225:12)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
2021-06-06 11:14:52 - debug [app.js]: [WS => Shard 0] WS State: CLOSED
2021-06-06 11:14:52 - error [app.js]: Privileged intent provided is not enabled or whitelisted.
{
  "stack": "Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
    at WebSocketManager.createShards (/home/runner/CalypsoBot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:258:15)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)"
}```
 i am getting this eroor while running 

About Changing Name in help

Cant i change the Name Of Calypso bot? it shows the name of your bot instead what i wanted it to change to

prefix

whats the prefix of this bot? i tried using ! and it didn't work

Problem after changing default prefix.

After changing default prefix I got this message when i run any command.

/home/container/src/utils/utils.js:10
return string.charAt(0).toUpperCase() + string.slice(1);
^

TypeError: Cannot read property 'charAt' of undefined
at capitalize (/home/container/src/utils/utils.js:10:17)
at HelpCommand.run (/home/container/src/commands/info/help.js:70:37)
at module.exports (/home/container/src/events/message.js:52:24)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (/home/container/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/home/container/node_modules/ws/lib/event-target.js:132:16)

Add Module-Alias

add module-alias npm package, so you can easily import "../Command" as "@command" and access it from anywhere within the project easily.

Auto-Kick

What is the default amount of warns for autokick??

Settings resetting

Hello, So everytime I restart the bot, My server settings reset, anyway to fix that?

bot commands

i have extra bot commands i want to add but i cant figure out how

npm install

charliemallia@Charlies-Air CalypsoBot-develop % Npm install

[email protected] install /Users/charliemallia/Downloads/CalypsoBot-develop/node_modules/better-sqlite3
prebuild-install || npm run build-release
prebuild-install WARN install No prebuilt binaries found (target=14.16.1 runtime=node arch=x64 libc= platform=darwin)

[email protected] build-release /Users/charliemallia/Downloads/CalypsoBot-develop/node_modules/better-sqlite3
node-gyp rebuild --release
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Darwin 20.4.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /Users/charliemallia/Downloads/CalypsoBot-develop/node_modules/better-sqlite3
gyp ERR! node -v v14.16.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build-release: node-gyp rebuild --release
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build-release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/charliemallia/.npm/_logs/2021-05-08T18_35_05_998Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: prebuild-install || npm run build-release
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/charliemallia/.npm/_logs/2021-05-08T18_35_06_385Z-debug.log

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.