mirror of
				https://github.com/keanuplayz/TravBot-v3.git
				synced 2024-08-15 02:33:12 +00:00 
			
		
		
		
	Made radical changes and setup foundation for SQLite database
This commit is contained in:
		
							parent
							
								
									69a8452574
								
							
						
					
					
						commit
						16e42be58d
					
				
					 22 changed files with 715 additions and 639 deletions
				
			
		|  | @ -2,6 +2,7 @@ | |||
| 
 | ||||
| - [Structure](#structure) | ||||
| - [Version Numbers](#version-numbers) | ||||
| - [Environment Variables](#environment-variables) | ||||
| - [Utility Functions](#utility-functions) | ||||
| - [Testing](#testing) | ||||
| 
 | ||||
|  | @ -34,6 +35,17 @@ Because versions are assigned to batches of changes rather than single changes ( | |||
| 
 | ||||
| *Note: This system doesn't retroactively apply to TravBot-v2, which is why this version naming system won't make sense for v2's changelog.* | ||||
| 
 | ||||
| # Environment Variables | ||||
| 
 | ||||
| Certain variables are set via `.env` at the project root. These are for system configuration and should never change dynamically within the program, essentially read-only variables. | ||||
| - `TOKEN`: Your bot's token | ||||
| - `PREFIX`: Your bot's prefix | ||||
| - `OWNER`: The ID of the owner | ||||
| - `ADMINS`: A comma-separated (with a space) list of bot admin IDs | ||||
| - `SUPPORT`: A comma-separated (with a space) list of bot support IDs | ||||
| - `WOLFRAM_API_KEY`: Used for `commands/utility/calc` | ||||
| - `DEV`: Enables dev mode as long as it isn't a falsy value (`DEV=1` works for example) | ||||
| 
 | ||||
| # Utility Functions | ||||
| 
 | ||||
| ## [src/lib](../src/lib.ts) - General utility functions | ||||
|  |  | |||
|  | @ -52,7 +52,7 @@ Rather than have an `events` folder which contains dynamically loaded events, yo | |||
| ```ts | ||||
| import {client} from ".."; | ||||
| 
 | ||||
| client.on("message", (message) => { | ||||
| client.on("messageCreate", (message) => { | ||||
| 	//... | ||||
| }); | ||||
| ``` | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue