GroupUp/config.example.ts

44 lines
2.8 KiB
TypeScript
Raw Normal View History

export const config = {
2022-07-10 17:48:38 -07:00
'name': 'Group Up', // Name of the bot
2022-12-21 11:49:52 -08:00
'version': '1.0.0', // Version of the bot
2022-07-10 17:48:38 -07:00
'token': 'the_bot_token', // Discord API Token for this bot
2023-01-11 15:06:20 -08:00
'localToken': 'local_testing_token', // Discord API Token for a secondary OPTIONAL testing bot, THIS MUST BE DIFFERENT FROM "token"
'prefix': '/', // Prefix for all commands
2022-07-10 17:48:38 -07:00
'db': { // Settings for the MySQL database, this is required for use with the API, if you do not want to set this up, you will need to rip all code relating to the DB out of the bot
'host': '', // IP address for the db, usually localhost
'localhost': '', // IP address for a secondary OPTIONAL local testing DB, usually also is localhost, but depends on your dev environment
'port': 3306, // Port for the db
'username': '', // Username for the account that will access your DB, this account will need "DB Manager" admin rights and "REFERENCES" Global Privileges
2022-07-10 17:48:38 -07:00
'password': '', // Password for the account, user account may need to be authenticated with the "Standard" Authentication Type if this does not work out of the box
'name': '', // Name of the database Schema to use for the bot
},
2023-01-11 18:21:43 -08:00
'link': { // Links to various sites
'sourceCode': 'https://github.com/Burn-E99/GroupUp', // Link to the repository
'supportServer': '', // Invite link to the Discord support server
'addToCalendar': '', // Link to where the icsGenerator is hosted
'creatorIcon': '', // Link to where the GroupUpSinglePerson.png (or similar image) is hosted
2023-01-11 18:21:43 -08:00
},
2023-03-28 17:23:08 -07:00
'logChannel': 0n, // Discord channel ID where the bot should put startup messages and other error messages needed
'reportChannel': 0n, // Discord channel ID where reports will be sent when using the built-in report command
'devServer': 0n, // Discord guild ID where testing of indev features/commands will be handled, used in conjunction with the DEVMODE bool in mod.ts
'owner': 0n, // Discord user ID of the bot admin
2022-07-10 17:48:38 -07:00
'botLists': [ // Array of objects containing all bot lists that stats should be posted to
{ // Bot List object, duplicate for each bot list
2022-07-10 17:48:38 -07:00
'name': 'Bot List Name', // Name of bot list, not used
'enabled': false, // Should statistics be posted to this list?
'apiUrl': 'https://example.com/api/bots/?{bot_id}/stats', // API URL, use ?{bot_id} in place of the bot id so that it can be dynamically replaced
'headers': [ // Array of headers that need to be added to the request
{ // Header Object, duplicate for every header needed
2022-07-10 17:48:38 -07:00
'header': 'header_name', // Name of header needed, usually Authorization is needed
'value': 'header_value', // Value for the header
},
],
2022-07-10 17:48:38 -07:00
'body': { // Data payload to send to the bot list, will be turned into a string and any ?{} will be replaced with the required value, currently only has ?{server_count}
'param_name': '?{param_value}', // Add more params as needed
},
},
],
};
export default config;