Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/otoneko1102/discord-userful-calculation-bot
Discord bot witten by discord.js and mathjs for advanced calculations. You can use Glitch to make it work.
https://github.com/otoneko1102/discord-userful-calculation-bot
calculation discord discord-bot discord-js javascript mathjs node-js useful
Last synced: 22 days ago
JSON representation
Discord bot witten by discord.js and mathjs for advanced calculations. You can use Glitch to make it work.
- Host: GitHub
- URL: https://github.com/otoneko1102/discord-userful-calculation-bot
- Owner: otoneko1102
- License: mit
- Created: 2023-07-14T04:53:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-11T06:52:57.000Z (over 1 year ago)
- Last Synced: 2024-11-22T15:31:37.784Z (3 months ago)
- Topics: calculation, discord, discord-bot, discord-js, javascript, mathjs, node-js, useful
- Language: JavaScript
- Homepage:
- Size: 208 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discord-userful-calculation-bot
Discord bot witten by discord.js v13 and mathjs for advanced calculations. You can use [Glitch](https://glitch.com/) to make it work.
**Anyone can copy and use this code.**
### Japanese explanation [here](https://note.com/otoneko1102/n/n10987618eae5).
## AD
My discord bot invite link [here](https://discord.com/api/oauth2/authorize?client_id=1108178870429036686&permissions=412384488512&scope=bot) written with this code.
Please add bot to your Discord server🙏🙏
## TO DO
Replace `px` in config.js with your own.
Invite your bot to at least one Discord server(Because events/ready.js will throw error).
_If the version of the NPM package in this code is low, it is recommended to use the latest version._
Use the following GS code to permanently run Glitch with [GAS (Google Apps Script)](https://script.google.com/).
```js
/*
Paste this code into GAS.
After that, please execute it once and allow the access authority etc.
Set the GAS timer at 5 minute intervals and run it.
*/var GLITCH_PROJECT_NAME = "" // Enter your Glitch project name here.
var GLITCH_URL = `https://${GLITCH_PROJECT_NAME}.glitch.me`;
function wakeGlitch(){
var json = {
'type':'wake'
};
sendGlitch(GLITCH_URL, json);
}
function sendGlitch(uri, json){
var params = {
'contentType' : 'application/json; charset=utf-8',
'method' : 'post',
'payload' : json,
'muteHttpExceptions': true
};
response = UrlFetchApp.fetch(uri, params);
}```
## âš WARNINGâš
If you try to import this repository and use it in Glitch before 2023/07/26, you may encounter an error. If so, import it again.
### I have no plans to create a project with the same functionality in discord.js v14.
If you have any questions or problems, please contact **@otoneko.** on Discord. You can get support [here](https://discord.gg/yKW8wWKCnS).