mirror of
				https://github.com/keanuplayz/TravBot-v3.git
				synced 2024-08-15 02:33:12 +00:00 
			
		
		
		
	eco-bet: save storage modification
This commit is contained in:
		
							parent
							
								
									38eb0906ee
								
							
						
					
					
						commit
						499aea9e66
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -90,6 +90,7 @@ export const BetCommand = new Command({ | |||
|                                     // Remove amount money from both parts to avoid duplication of money.
 | ||||
|                                     sender.money -= amount; | ||||
|                                     receiver.money -= amount; | ||||
|                                     Storage.save(); | ||||
| 
 | ||||
|                                     // Notify both users.
 | ||||
|                                     await channel.send(`<@${target.id}> has taken <@${author.id}>'s bet, the bet amount of ${$(amount).pluralise("Mon", "s")} has been deducted from each of them.`); | ||||
|  | @ -127,6 +128,7 @@ export const BetCommand = new Command({ | |||
|                                                 receiver.money += amount; | ||||
|                                                 channel.send(`By the people's votes, <@${target.id}> couldn't be determined to have won or lost the bet that <@${author.id}> had sent them.`); | ||||
|                                             } | ||||
|                                             Storage.save(); | ||||
|                                         }); | ||||
|                                     }, duration); | ||||
|                                 } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue