A powerful and extendable Discord bot, with it's own module system :3 thevoid.cafe/projects/voidy

✨ Add "description" to Feature class

Jo f3871cd0 6c9ad90d

+4
+1
src/features/chatbot/feature.json
··· 1 1 { 2 2 "name": "chatbot", 3 + "description": "Send random messages. Allows configuring profiles, messages, events and special filters.", 3 4 "version": "0.1.0" 4 5 }
+3
src/utils/classes/Feature.ts
··· 1 1 export class Feature { 2 2 constructor(options: FeatureOptions) { 3 3 this.name = options.name; 4 + this.description = options.description; 4 5 this.version = options.version; 5 6 } 6 7 7 8 public name: string; 9 + public description: string; 8 10 public version: string; 9 11 } 10 12 11 13 export interface FeatureOptions { 12 14 name: string, 15 + description: string, 13 16 version: string, 14 17 }