Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: add shebangs to utility scripts #2516

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions builder.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
import fs from "fs";
import { build } from "esbuild";
import { minify } from "@swc/core";
Expand Down
20 changes: 20 additions & 0 deletions util/deploy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
#!/usr/bin/env node

/*
* Copyright 2021-2024 mtripg6666tdr
*
* This file is part of mtripg6666tdr/Discord-SimpleMusicBot.
* (npm package name: 'discord-music-bot' / repository url: <https://github.com/mtripg6666tdr/Discord-SimpleMusicBot> )
*
* mtripg6666tdr/Discord-SimpleMusicBot is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*
* mtripg6666tdr/Discord-SimpleMusicBot is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with mtripg6666tdr/Discord-SimpleMusicBot.
* If not, see <https://www.gnu.org/licenses/>.
*/

const candyget = require("candyget");

async function main(){
Expand Down
20 changes: 20 additions & 0 deletions util/exec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
#!/usr/bin/env node

/*
* Copyright 2021-2024 mtripg6666tdr
*
* This file is part of mtripg6666tdr/Discord-SimpleMusicBot.
* (npm package name: 'discord-music-bot' / repository url: <https://github.com/mtripg6666tdr/Discord-SimpleMusicBot> )
*
* mtripg6666tdr/Discord-SimpleMusicBot is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*
* mtripg6666tdr/Discord-SimpleMusicBot is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with mtripg6666tdr/Discord-SimpleMusicBot.
* If not, see <https://www.gnu.org/licenses/>.
*/

const { spawn, spawnSync } = require("child_process");
const fs = require("fs");
const path = require("path");
Expand Down
4 changes: 3 additions & 1 deletion util/generateCommandList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env node

/*
* Copyright 2021-2022 mtripg6666tdr
* Copyright 2021-2024 mtripg6666tdr
*
* This file is part of mtripg6666tdr/Discord-SimpleMusicBot.
* (npm package name: 'discord-music-bot' / repository url: <https://github.com/mtripg6666tdr/Discord-SimpleMusicBot> )
Expand Down
19 changes: 19 additions & 0 deletions util/notification.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#!/usr/bin/env node

/*
* Copyright 2021-2024 mtripg6666tdr
*
* This file is part of mtripg6666tdr/Discord-SimpleMusicBot.
* (npm package name: 'discord-music-bot' / repository url: <https://github.com/mtripg6666tdr/Discord-SimpleMusicBot> )
*
* mtripg6666tdr/Discord-SimpleMusicBot is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*
* mtripg6666tdr/Discord-SimpleMusicBot is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with mtripg6666tdr/Discord-SimpleMusicBot.
* If not, see <https://www.gnu.org/licenses/>.
*/

// @ts-check
require("dotenv").config();
const oceanic = require("oceanic.js");
Expand Down
20 changes: 20 additions & 0 deletions util/testLoad.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
#!/usr/bin/env node

/*
* Copyright 2021-2024 mtripg6666tdr
*
* This file is part of mtripg6666tdr/Discord-SimpleMusicBot.
* (npm package name: 'discord-music-bot' / repository url: <https://github.com/mtripg6666tdr/Discord-SimpleMusicBot> )
*
* mtripg6666tdr/Discord-SimpleMusicBot is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*
* mtripg6666tdr/Discord-SimpleMusicBot is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with mtripg6666tdr/Discord-SimpleMusicBot.
* If not, see <https://www.gnu.org/licenses/>.
*/

// Load polyfill first
require("../dist/polyfill");

Expand Down