Created
December 16, 2023 07:35
-
-
Save Kitua2100/8785d0af37f0b1bc3cb3472fb3de5da6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { bot } = require('../lib/') | |
| let AutoBio = false | |
| /* | |
| { | |
| pattern: 'mybio ?(.*)', fromMe: true, | |
| desc: 'bot alive message', | |
| type: 'misc', | |
| }, | |
| */ | |
| bot( | |
| { | |
| on: 'text', | |
| fromMe: false, | |
| type: 'autoBio', | |
| }, | |
| async (message, match) => { | |
| if (AutoBio == false) { | |
| setInterval(() => { | |
| const date = new Date() | |
| message.client.updateProfileStatus( | |
| `It's🎭${date.toLocaleString('en-US', { timeZone: 'Africa/Nairobi' })}On${date.toLocaleString('en-US', { weekday: 'long', timeZone: 'Africa/Nairobi'})}Programmed to Autoupdate by FRANCIS | |
| MUTHIANI™️💎 | |
| DM FOR; bot deployment,vps hosting and many more ` | |
| ) | |
| }, 10 * 1000) | |
| AutoBio = true | |
| } | |
| } | |
| ) | |
| @Kitua2100 | |
| Comment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment