Added birthday watcher #401
This commit is contained in:
		| @@ -12,6 +12,7 @@ export interface ServerConfig extends DataWithHistory { | ||||
|   xpPerOntimeHour?: number; | ||||
|   xpPerEventParticipation?: number; | ||||
|   xpPerAchievement?: number; | ||||
|   xpForBirthday?: number; | ||||
|   afkCommandChannelId?: string; | ||||
|   helpVoiceChannelId?: string; | ||||
|   teamChannelId?: string; | ||||
|   | ||||
| @@ -256,6 +256,7 @@ export class Mutations { | ||||
|       $xpPerOntimeHour: Int, | ||||
|       $xpPerEventParticipation: Int, | ||||
|       $xpPerAchievement: Int, | ||||
|       $xpForBirthday: Int, | ||||
|       $afkCommandChannelId: String, | ||||
|       $helpVoiceChannelId: String, | ||||
|       $teamChannelId: String, | ||||
| @@ -280,6 +281,7 @@ export class Mutations { | ||||
|             xpPerOntimeHour: $xpPerOntimeHour, | ||||
|             xpPerEventParticipation: $xpPerEventParticipation, | ||||
|             xpPerAchievement: $xpPerAchievement, | ||||
|             xpForBirthday: $xpForBirthday, | ||||
|             afkCommandChannelId: $afkCommandChannelId, | ||||
|             helpVoiceChannelId: $helpVoiceChannelId, | ||||
|             teamChannelId: $teamChannelId, | ||||
| @@ -302,6 +304,7 @@ export class Mutations { | ||||
|           xpPerOntimeHour | ||||
|           xpPerEventParticipation | ||||
|           xpPerAchievement | ||||
|           xpForBirthday | ||||
|           afkCommandChannelId | ||||
|           helpVoiceChannelId | ||||
|           teamChannelId | ||||
|   | ||||
| @@ -525,6 +525,7 @@ export class Queries { | ||||
|           xpPerOntimeHour | ||||
|           xpPerEventParticipation | ||||
|           xpPerAchievement | ||||
|           xpForBirthday | ||||
|           afkCommandChannelId | ||||
|           helpVoiceChannelId | ||||
|           teamChannelId | ||||
|   | ||||
| @@ -82,6 +82,14 @@ | ||||
|       </div> | ||||
|     </div> | ||||
|  | ||||
|     <div class="content-row"> | ||||
|       <div class="content-column"> | ||||
|         <div class="content-data-name">{{'view.server.config.bot.xp_for_birthday' | translate}}:</div> | ||||
|         <div class="content-data-value"><input type="number" pInputText [(ngModel)]="config.xpForBirthday" | ||||
|                                                placeholder="{{'view.server.config.bot.xp_for_birthday' | translate}}"></div> | ||||
|       </div> | ||||
|     </div> | ||||
|  | ||||
|     <div class="content-row"> | ||||
|       <div class="content-column"> | ||||
|         <div class="content-data-name">{{'view.server.config.bot.afk_command_channel_id' | translate}}:</div> | ||||
|   | ||||
| @@ -118,6 +118,7 @@ export class ConfigComponent implements OnInit { | ||||
|         xpPerOntimeHour: this.config.xpPerOntimeHour, | ||||
|         xpPerEventParticipation: this.config.xpPerEventParticipation, | ||||
|         xpPerAchievement: this.config.xpPerAchievement, | ||||
|         xpForBirthday: this.config.xpForBirthday, | ||||
|         afkCommandChannelId: this.config.afkCommandChannelId, | ||||
|         helpVoiceChannelId: this.config.helpVoiceChannelId, | ||||
|         teamChannelId: this.config.teamChannelId, | ||||
|   | ||||
| @@ -433,6 +433,7 @@ | ||||
|           "notification_chat_id": "Benachrichtungskanal", | ||||
|           "short_role_name_only_set_highest_role": "Bei Rollen Kürzeln nur die höchste Rolle verwenden", | ||||
|           "team_channel_id": "Team chat", | ||||
|           "xp_for_birthday": "XP für Geburtstag", | ||||
|           "xp_per_achievement": "XP für Errungenschaft", | ||||
|           "xp_per_event_participation": "XP für Event Teilnahme", | ||||
|           "xp_per_message": "XP für eine Nachricht", | ||||
|   | ||||
| @@ -433,6 +433,7 @@ | ||||
|           "notification_chat_id": "Notification channel", | ||||
|           "short_role_name_only_set_highest_role": "For role abbreviations use only the highest role", | ||||
|           "team_channel_id": "Team chat", | ||||
|           "xp_for_birthday": "XP for birthday", | ||||
|           "xp_per_achievement": "XP for achievement", | ||||
|           "xp_per_event_participation": "XP for event participation", | ||||
|           "xp_per_message": "XP for message", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user