Skip to content

Commit

Permalink
Merge pull request #19 from paramoNNNN/chore/update-packages
Browse files Browse the repository at this point in the history
[chore] update packages
  • Loading branch information
paramoNNNN authored Aug 17, 2022
2 parents e803882 + 9cbe642 commit 44a1e2e
Show file tree
Hide file tree
Showing 6 changed files with 344 additions and 510 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 18.4.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Set your bot TOKEN in `.env`

- Install packages: `yarn`

- build and run the bot: `yarn tsc && node build/bot.js`
- build and run the bot: `yarn tsc && node build/src/bot.js`
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
{
"main": "build/src/bot.js",
"name": "slowed-reverb-bot",
"version": "1.0.1",
"dependencies": {
"axios": "^0.26.0",
"bullmq": "^1.75.1",
"dotenv": "^16.0.0",
"axios": "^0.27.2",
"bullmq": "^1.87.2",
"dotenv": "^16.0.1",
"fluent-ffmpeg": "^2.1.2",
"get-audio-duration": "^3.0.0",
"got": "^11.8.2",
"get-audio-duration": "^3.1.0",
"node-id3": "^0.2.3",
"telegraf": "^4.7.0",
"ytdl-core": "^4.10.1"
"telegraf": "^4.8.6",
"ytdl-core": "^4.11.0"
},
"devDependencies": {
"@types/fluent-ffmpeg": "^2.1.20",
"@types/node": "^17.0.21",
"@typescript-eslint/eslint-plugin": "^5.12.1",
"@typescript-eslint/parser": "^5.12.1",
"eslint": "^8.10.0",
"typescript": "^4.5.5"
"@types/node": "^18.7.6",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"eslint": "^8.22.0",
"typescript": "^4.7.4"
}
}
3 changes: 3 additions & 0 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import dotenv from "dotenv";
import { checkMessage, splitMessage } from "./utils";
import { writeLog } from "./helpers/logger";
import { addEffectQueue } from "./queues";
import { version } from "../package.json";
import { CTX } from "./types";

dotenv.config();
Expand Down Expand Up @@ -42,6 +43,8 @@ Change the audio playback speed but not its pitch.
shift gives the pitch shift as positive or negative 'cents' (i.e. 100ths of a semitone)
<b>Default value if none given:</b> 0.8
<b>Example:</b> <code>/tempo 0.9</code>
<b>v${version}</b>
`;

const bot: Telegraf = new Telegraf(process.env.TOKEN);
Expand Down
26 changes: 13 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"compilerOptions": {
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
"lib": ["es6"], /* Specify library files to be included in the compilation. */
"allowJs": true, /* Allow javascript files to be compiled. */
"outDir": "build", /* Redirect output structure to the directory. */
"rootDir": "src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
"strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"resolveJsonModule": true, /* Include modules imported with '.json' extension */
"skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
}
"target": "ESNext",
"module": "commonjs",
"lib": ["es6"],
"allowJs": true,
"outDir": "build",
"strict": true,
"noImplicitAny": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"exclude": ["node_modules"]
}
Loading

0 comments on commit 44a1e2e

Please sign in to comment.