announcement bot
3 posters
Page 1 of 1
announcement bot
how would i make a announcement bot for very important stuff
Last edited by darkgoku on October 20th 2014, 11:31 am; edited 1 time in total
darkgoku- Forumember
- Posts : 340
Reputation : 3
Language : English
Re: announcement bot
on this post i used a code i found but it will not change the name of the bot http://academyofeca.forumotion.com/t1-test123334444444
darkgoku- Forumember
- Posts : 340
Reputation : 3
Language : English
Re: announcement bot
[list=linenums]
[*]$(function() {
[*]var p = {
[*]post: $('.post')[0],
[*]date: $('.posthead').first().find('h2').html(),
[*]announce: 'Ad code here!',//Enter the code beside the advertising
[*]member: 'Bot',//Define Name of a Bot
[*]imagem: 'https://i.imgur.com/tdaNexK.jpg',//Picture of the Bot
[*]message: '1000',//Total Number of Post
[*]register: 'Always',//Date Registred
[*]location: 'Anúncio'//Location
[*]};
[*]$(p.post).after('
[*]<div id="ann" class="post">
[*]<div class="postmain">
[*]<div class="posthead">
[*] <h2>'+p.date+'</h2>
[*]</div>
[*] <div class="postbody">
[*] <div class="user">
[*] <div class="user-ident">
[*] <h4 class="username">
[*] <strong>'+p.membro+'</strong>
[*] </h4>
[*] <div class="user-basic-info">
[*] <img src="'+p.imagem+'" alt="">
[*] <br>Advertisement<br>
[*] </div>
[*] </div>
[*]<div class="user-info">
[*]<span class="label"><span>Messages</span>: </span>'+p.message+'<br>
[*]<span class="label"><span>Date Registered</span>: </span>'+p.register+'<br>
[*]<span class="label"><span>Location</span>: </span>'+p.location+'<br>
[*]</div>
[*] </div>
[*] <div class="post-entry">
[*] <div class="entry-content">
[*] '+p.announce+'
[*] </div>
[*] </div>
[*]</div>
[*]<div class="postfoot"></div>
[*]</div>');
[*]$('#ann').find('h2').find('strong').html('#ADS');
[*]});
[/list]
[*]$(function() {
[*]var p = {
[*]post: $('.post')[0],
[*]date: $('.posthead').first().find('h2').html(),
[*]announce: 'Ad code here!',//Enter the code beside the advertising
[*]member: 'Bot',//Define Name of a Bot
[*]imagem: 'https://i.imgur.com/tdaNexK.jpg',//Picture of the Bot
[*]message: '1000',//Total Number of Post
[*]register: 'Always',//Date Registred
[*]location: 'Anúncio'//Location
[*]};
[*]$(p.post).after('
[*]<div id="ann" class="post">
[*]<div class="postmain">
[*]<div class="posthead">
[*] <h2>'+p.date+'</h2>
[*]</div>
[*] <div class="postbody">
[*] <div class="user">
[*] <div class="user-ident">
[*] <h4 class="username">
[*] <strong>'+p.membro+'</strong>
[*] </h4>
[*] <div class="user-basic-info">
[*] <img src="'+p.imagem+'" alt="">
[*] <br>Advertisement<br>
[*] </div>
[*] </div>
[*]<div class="user-info">
[*]<span class="label"><span>Messages</span>: </span>'+p.message+'<br>
[*]<span class="label"><span>Date Registered</span>: </span>'+p.register+'<br>
[*]<span class="label"><span>Location</span>: </span>'+p.location+'<br>
[*]</div>
[*] </div>
[*] <div class="post-entry">
[*] <div class="entry-content">
[*] '+p.announce+'
[*] </div>
[*] </div>
[*]</div>
[*]<div class="postfoot"></div>
[*]</div>');
[*]$('#ann').find('h2').find('strong').html('#ADS');
[*]});
[/list]
darkgoku- Forumember
- Posts : 340
Reputation : 3
Language : English
Re: announcement bot
Please copy the current code or link me to the thread you got the code from also use code tag next time.
Re: announcement bot
i fixed it thanks for the help tho
darkgoku- Forumember
- Posts : 340
Reputation : 3
Language : English
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum