Skip to content

Instantly share code, notes, and snippets.

@mickytexas
Forked from souravkl11/autobio.js
Last active July 23, 2023 12:28
Show Gist options
  • Save mickytexas/e293110850b71bf84a2777ea1f359a20 to your computer and use it in GitHub Desktop.
Save mickytexas/e293110850b71bf84a2777ea1f359a20 to your computer and use it in GitHub Desktop.
let {Module} = require('../main');
/*
Credit: Arinzechukwu/Dennis
Module({
pattern: 'autobio ?(.*)',
fromMe: true
*/
let on_aano = true
Module({on:"text",fromMe:true},async (m)=>{
if (on_aano=== true || on_aano === null) return;
if (m.message.toLowerCase() == "autobio on") {
on_aano = null
clearInterval(bioSetter)
await m.send("_Autobio disabled. Remove plugin for completing removal process!_")
}
on_aano = true
async function setAbout(){
let status = "+new Date().toLocaleDateString()+"+new Date().toLocaleTimeString()+" 𝘈rinzechukwu ⚡"
await m.client.updateProfileStatus(status)
return "Done"
}
m.jid = m.client.user.id
await m.send("_Auto bio activated!_");
let bioSetter = setInterval(setAbout,10000)
})
@mickytexas
Copy link
Author

Try this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment