mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Add date & time substitution params. #155
This commit is contained in:
		| @@ -1268,6 +1268,8 @@ function substituteParams(content, _name1, _name2) { | ||||
|     content = content.replace(/{{char}}/gi, _name2); | ||||
|     content = content.replace(/<USER>/gi, _name1); | ||||
|     content = content.replace(/<BOT>/gi, _name2); | ||||
|     content = content.replace(/{{time}}/gi, moment().format('LT')); | ||||
|     content = content.replace(/{{date}}/gi, moment().format('LL')); | ||||
|     return content; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user