mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 17:44:15 +02:00
feat(arabot): add dev ids in development mode
This commit is contained in:
parent
01b2c5ab56
commit
d7d42a1bfa
@ -3,6 +3,7 @@ DISCORD_TOKEN= # Bot token from: https://discord.com/developers/
|
|||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
DEFAULT_PREFIX= # Prefix used to run commands in Discord
|
DEFAULT_PREFIX= # Prefix used to run commands in Discord
|
||||||
|
DEVELOPMENT= # (true/false) Enables developer mode
|
||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
POSTGRES_USER=USERNAME
|
POSTGRES_USER=USERNAME
|
||||||
|
71
src/utils/devIDs.ts
Normal file
71
src/utils/devIDs.ts
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/*
|
||||||
|
Animal Rights Advocates Discord Bot
|
||||||
|
Copyright (C) 2022 Anthony Berg
|
||||||
|
|
||||||
|
This program 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.
|
||||||
|
|
||||||
|
This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export const devIDs = {
|
||||||
|
roles: {
|
||||||
|
trusted: '999431675081666599',
|
||||||
|
nonvegan: {
|
||||||
|
nonvegan: '999431675081666598',
|
||||||
|
vegCurious: '999431675098447932',
|
||||||
|
convinced: '999431675098447933',
|
||||||
|
},
|
||||||
|
vegan: {
|
||||||
|
vegan: '999431675098447937',
|
||||||
|
activist: '999431675098447934',
|
||||||
|
plus: '999431675010359460',
|
||||||
|
},
|
||||||
|
restrictions: {
|
||||||
|
sus: '999431674997788673',
|
||||||
|
muted: '999431675123597402',
|
||||||
|
restricted1: '999431674997788677',
|
||||||
|
restricted2: '999431674997788676',
|
||||||
|
restricted3: '999431674997788675',
|
||||||
|
restricted4: '999431674997788674',
|
||||||
|
},
|
||||||
|
staff: {
|
||||||
|
coordinator: '999431675165556822',
|
||||||
|
devCoordinator: '999431675165556818',
|
||||||
|
mentorCoordinator: '999431675140382809',
|
||||||
|
verifierCoordinator: '999431675140382810',
|
||||||
|
restricted: '999431675123597407',
|
||||||
|
moderator: '999431675123597408',
|
||||||
|
verifier: '999431675123597406',
|
||||||
|
},
|
||||||
|
patron: '999431675098447935',
|
||||||
|
patreon: '999431675098447936',
|
||||||
|
verifyingAsVegan: '999431675081666597',
|
||||||
|
},
|
||||||
|
channels: {
|
||||||
|
staff: {
|
||||||
|
coordinators: '999431676058927254',
|
||||||
|
standup: '999431676289622183',
|
||||||
|
},
|
||||||
|
diversity: {
|
||||||
|
women: '999431679053660187',
|
||||||
|
lgbtqia: '999431679053660188',
|
||||||
|
potgm: '999431679053660189',
|
||||||
|
disabilities: '999431679527628810',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
categories: {
|
||||||
|
diversity: '999431679053660185',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default devIDs;
|
@ -17,7 +17,10 @@
|
|||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const IDs = {
|
// eslint-disable-next-line import/extensions
|
||||||
|
import devIDs from './devIDs';
|
||||||
|
|
||||||
|
let IDs = {
|
||||||
roles: {
|
roles: {
|
||||||
trusted: '731563158011117590',
|
trusted: '731563158011117590',
|
||||||
nonvegan: {
|
nonvegan: {
|
||||||
@ -69,4 +72,11 @@ const IDs = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export { IDs };
|
require('dotenv').config();
|
||||||
|
|
||||||
|
// Check if the bot is in development mode
|
||||||
|
if (process.env.DEVELOPMENT === 'true') {
|
||||||
|
IDs = devIDs;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default { IDs };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user