Advertisement
Homer-EC

Ethercrash.io OpenAI Generated User Bot

Dec 11th, 2022
1,211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const config = {
  2.   username: "Cracked",
  3.   command: "run",
  4.   prefix: "."
  5. };
  6.  
  7. function checkData(d) {
  8.   if (d.message.startsWith('[Bot]')) {
  9.     return null;
  10.   }
  11.   if (d && d.channelName === 'spam' && !d.hasOwnProperty('chatSent') && d.message === config.prefix + config.command) {
  12.     d.username === config.username ? DoOwnerLogic(d) : DoLogic(d);
  13.     d.chatSent = true;
  14.   }
  15. }
  16.  
  17. function DoLogic(d) {
  18.   engine.chat('[Bot] ' + d.username + ', I will not run for you');
  19. }
  20.  
  21. function DoOwnerLogic(d) {
  22.   engine.chat('[Bot] ' + d.username + ', I was created with ChatGPT');
  23. }
  24.  
  25. engine.on('msg', function(d) {
  26.   checkData(d);
  27. });
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement