-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate-submit-your-bot.php
497 lines (445 loc) · 26.3 KB
/
template-submit-your-bot.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
<?php
use ColorThief\ColorThief;
global $helpers;
/* Template Name: Submit Your Bot Page Template */
get_header();
$post_id = get_the_ID();
$bot_name_val = !empty( $_REQUEST['bot-name'] ) ? $_REQUEST['bot-name'] : '';
$bot_urls_val = !empty( $_REQUEST['bot-urls'] ) ? $_REQUEST['bot-urls'][0] : '';
$bot_description_val = !empty( $_REQUEST['bot-description'] ) ? $_REQUEST['bot-description'] : '';
$bot_tagline_val = !empty( $_REQUEST['bot-tagline'] ) ? $_REQUEST['bot-tagline'] : '';
$dominant_color = get_post_meta( $post_id, 'dominant_color', true );
$dominant_color_css = str_replace( '[', 'background-color:rgb( ', $dominant_color );
$dominant_color_css = str_replace( ']', ' )', $dominant_color_css );
if ( !empty( $_POST ) ){
// error_log( print_r( $_POST, true ) );
if (
( isset( $_POST['bot-name'] ) && !empty( $_POST['bot-name'] ) ) &&
( isset( $_POST['bot-description'] ) && !empty( $_POST['bot-description'] ) ) &&
( isset( $_POST['bot-networks'] ) && !empty( $_POST['bot-networks'] ) ) &&
( isset( $_POST['bot-urls'] ) && !empty( $_POST['bot-urls'] ) ) &&
( isset( $_POST['bot-tagline'] ) && !empty( $_POST['bot-tagline'] ) ) &&
( isset( $_POST['bot-tags'] ) && !empty( $_POST['bot-tags'] ) )
) {
$bot_authors = array();
if ( !empty( $_POST['author-names'] ) ){
foreach ( $_POST['author-names'] as $index => $author_name ) {
if ( !empty( $_POST['author-names'][$index] ) ){
array_push( $bot_authors, trim( $author_name ) .
( array_key_exists( $index, $_POST['author-urls'] ) && !empty( $_POST['author-urls'][$index] )
? ', ' . trim( $_POST['author-urls'][$index] ) : '' ) );
}
}
}
$bot_author_info = implode( "\n", $bot_authors );
$bot_description = trim( $_POST['bot-description'] );
$bot_urls = $_POST['bot-urls'];
global $helpers;
$main_bot_url = $bot_urls[0];
$created_by_html_array = array();
$author_tags = array();
foreach ( $bot_authors as $bot_author ) {
$bot_author_info_arr = explode( ',', $bot_author );
if ( count( $bot_author_info_arr ) === 2 ){
array_push( $created_by_html_array, '<a href="' . trim( $bot_author_info_arr[1] ) . '">' . trim( $bot_author_info_arr[0] ) . '</a>' );
$user = $helpers->get_username_from_url( $bot_author_info_arr[1] );
if ( $user ){
if ( !empty( $user['username_twitter'] ) ){
array_push( $author_tags , '@' . $user['username_twitter'] );
}
if ( !empty( $user['username'] ) ){
array_push( $author_tags , $user['username'] );
}
}
}
else{
array_push( $created_by_html_array, $bot_author_info_arr[0] );
}
}
if ( count( $_POST['bot-networks'] ) == 1 ){
$post_content = '<!-- wp:paragraph -->'
. '<p><a href="' . $main_bot_url . '">' . trim( $_POST['bot-name'] ) . '</a> is a '
. get_term_by( 'slug', $_POST['bot-networks'][0], 'network' )->name
. " bot"
. ( count( $bot_authors ) > 0 ? " created by " : "" )
. $helpers->join_with_and( $created_by_html_array ) . " that</p>"
. '<!-- /wp:paragraph -->'
. '<!-- wp:paragraph -->'
. wpautop( $bot_description )
. '<!-- /wp:paragraph -->';
}
else{
$post_content = '<!-- wp:paragraph -->'
. '<p><a href="' . $main_bot_url . '">' . $_POST['bot-name'] . '</a> is a '
. $helpers->join_with_and( array_map( 'get_network_name', $_POST['bot-networks'] ) )
. ( count( $bot_authors ) > 0 ? " bot created by " : "" )
. $helpers->join_with_and( $created_by_html_array ) . " that</p>"
. '<!-- /wp:paragraph -->'
. '<!-- wp:paragraph -->'
. wpautop( $bot_description )
. '<!-- /wp:paragraph -->';
}
$bot_meta = array();
$bot_meta['bot_is_featured'] = 'on';
$bot_urls = array_map(function($url){
return rtrim($url, '/\\');
}, $bot_urls);
$bot_meta['bot_url'] = trim( implode( "\n", $bot_urls ) );
$bot_meta['bot_source_url'] = trim( $_POST['bot-source-url'] );
$bot_meta['bot_tweets'] = trim( $_POST['bot-selected-tweets'] );
$bot_meta['bot_author_email'] = trim( $_POST['bot-author-email'] );
$screenshotable_url = $helpers->get_screenshotable_url( $bot_urls );
if ( $screenshotable_url === false ){
$screenshotable_url = $main_bot_url;
}
$screenshotable_url = trim( str_replace( array( "\n", "\r" ), '', $screenshotable_url ) );
$bot_tags = array();
foreach ( $_POST['bot-tags'] as $bot_tag ) {
array_push( $bot_tags, ltrim( trim( $bot_tag ), '#' ) );
}
foreach ( $bot_urls as $bot_url ) {
if ( strpos( $bot_url, 'botsin.space/' ) ){
array_push( $bot_tags, 'botsin.space' );
break;
}
}
if ( isset( $_POST['bot-is-interactive'] ) ){
array_push( $bot_tags, 'interactive' );
}
if ( isset( $_POST['is-authors-first-bot'] ) ){
array_push( $bot_tags, 'myfirstbot' );
}
if ( is_user_logged_in() && isset( $_POST['disassociate-author-input'] ) && $_POST['disassociate-author-input'] === 'false' ){
$twitter_handle = '@' . str_replace( '@', '', esc_attr( get_the_author_meta( 'twitter-handle', get_current_user_id() ) ) );
$fediverse_handle = esc_attr( get_the_author_meta( 'fediverse-handle', get_current_user_id() ) );
if ( !empty( $twitter_handle ) ){
array_push( $bot_tags, $twitter_handle );
}
}
if ( count( $author_tags ) > 0 ){
$bot_tags = array_merge( $bot_tags, $author_tags );
}
// if ( isset( $_POST['bot-source-url'] ) && !empty( $_POST['bot-source-url'] ) ){
// array_push( $bot_tags, 'opensource' );
// }
$post_data = array(
'post_author' => ( ( is_user_logged_in() && isset( $_POST['disassociate-author-input'] ) && $_POST['disassociate-author-input'] === 'false' ) ? get_current_user_id() : 2 ),
'post_content' => $post_content,
'post_title' => $_POST['bot-name'],
'post_excerpt' => $_POST['bot-tagline'],
'post_status' => 'draft',
'post_type' => 'bot',
'post_category' => '',
// 'tax_input' => array(
// 'post_tag' => $bot_tags
// ),
'meta_input' => $bot_meta
);
$new_post_id = wp_insert_post( $post_data );
if ( get_current_user_id() !== 1 ){
if (
( isset( $_POST['apply-for-botmaker-badge'] ) && !empty( $_POST['apply-for-botmaker-badge'] ) ) &&
( isset( $_POST['bot-author-email'] ) && !empty( $_POST['bot-author-email'] ) )
){
$email_subject = 'Badge request and new bot submission';
}
else{
$email_subject = 'New bot submission';
}
$post_data = $_POST;
$post_data['edit_link'] = "https://botwiki.org/wp-admin/post.php?post=$new_post_id&action=edit";
wp_mail( get_the_author_meta( 'user_email', 1 ), $email_subject, print_r( $post_data, true ) );
}
wp_set_object_terms( $new_post_id, $bot_tags, 'post_tag' );
update_post_meta( $new_post_id, 'bot_author_info', $bot_author_info );
foreach ( $bot_meta as $key => $value ) {
update_post_meta( $new_post_id, $key, $value );
}
if ( count( array_intersect( $_POST['bot-networks'], array( 'mastodon', 'gnu-social' ) ) ) > 0 ){
array_push( $_POST['bot-networks'], 'fediverse' );
}
wp_set_object_terms( $new_post_id, $_POST['bot-networks'], 'network' );
wp_set_object_terms( $new_post_id, $_POST['bot-source-language'], 'programing_language' );
if ( $screenshotable_url !== false ){
try {
$screenshot = $helpers->make_screenshot( array(
'url' => $screenshotable_url,
'file_name' => trim( $_POST['bot-name'] )
) );
if ( class_exists( 'ColorThief\ColorThief ' ) ){
try {
$dominant_color = ColorThief::getColor( $screenshot['image_path'] );
update_post_meta( $new_post_id, 'dominant_color', json_encode( $dominant_color ) );
} catch (Exception $e) {
/* noop */
}
}
$helpers->add_post_thumbnail( $new_post_id, $screenshot['image_path'], $bot_description );
if ( !is_user_logged_in() || $_POST['disassociate-author-input'] !== 'false' ){
global $wpdb;
$query = "UPDATE " . $wpdb->prefix . "posts SET post_status='pending' WHERE ID = '" . $new_post_id . "'";
$wpdb->query( $query );
}
} catch ( Exception $e ) {
// TODO: Proper error handling.
// log_this( $e->getMessage() );
}
}
?>
<main role="main" class="container-fluid m-0 p-0">
<div class="container">
<h1 class="post-title text-center">Thank you!</h1>
<div id="robots" class="mt-5 text-center"></div>
<article id="post-<?php echo $post_id; ?>" <?php post_class(); ?>>
<div class="post-content">
<?php if ( ( is_user_logged_in() && $_POST['disassociate-author-input'] === 'false' ) ){ ?>
<div class="p-3 pt-5">
<p><strong>Thank you!</strong> Make sure to <a href="/wp-admin/edit.php?post_status=draft&post_type=bot&author=<?php echo get_current_user_id(); ?>">submit your bots for review</a>.</p>
</div>
<?php } else { ?>
<p class="mt-5"><strong>Thank you for your submission!</strong> Please be patient while we review it 😊</p>
<p>You can follow <a href="https://botsin.space/@newonbotwiki" target="_blank">@[email protected]</a> to see when the site gets updated.</p>
<?php } ?>
<ul class="btn-list mt-4">
<li>
<a class="btn" href="<?php echo get_permalink(); ?>">Add one more</a>
</li>
<li>
<a class="btn" href="/submit-resource/">Add a resource</a>
</li>
<li>
<a class="btn" href="/bots/#browse-bots-by-category">Browse bots</a>
</li>
<li>
<a class="btn" href="<?php echo get_site_url(); ?>">Back to home page</a>
</li>
</ul>
<div class="row mt-5">
<div class="col-sm-12 col-md-6">
<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">We are a diverse group of enthusiasts who make and share fun and creative online bots. Come join us! 😊 <a href="https://t.co/4FH6OgVuCG">https://t.co/4FH6OgVuCG</a></p>— A friendly encyclopedia of 🤖💻💾 ( @botwikidotorg ) <a href="https://twitter.com/botwikidotorg/status/984405698103726082?ref_src=twsrc%5Etfw">April 12, 2018</a></blockquote>
</div>
<div class="col-sm-12 col-md-6">
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">New bot was added to Botwiki! <a href="https://t.co/RUepf5f8Im">https://t.co/RUepf5f8Im</a></p>— New on Botwiki ✨ (@newonbotwiki) <a href="https://twitter.com/newonbotwiki/status/1206599872016719877?ref_src=twsrc%5Etfw">December 16, 2019</a></blockquote>
</div>
</div>
</div>
</article>
</div>
</main>
<?php }
else{ ?>
<main role="main" class="container-fluid m-0 p-0">
<div class="container">
<article id="post-<?php echo $post_id; ?>" <?php post_class(); ?>>
<h1 class="text-center post-title mt-5"><span><?php the_title(); ?></span></h1>
<div id="robots" class="mt-5 text-center"></div>
<div class="post-content">
<p>Please <a href="<?php echo get_permalink(); ?>">return to the previous page</a> and make sure all required fields are filled out. <strong>Thank you!</strong></p>
</div>
</article>
</div>
</main>
<?php }
}
else { ?>
<link rel='stylesheet' href='<?php bloginfo( 'template_directory' ) ?>/libs/medium-editor/5.23.3/css/medium-editor.css' media='all' />
<link rel='stylesheet' href='<?php bloginfo( 'template_directory' ) ?>/libs/medium-editor/5.23.3/css/themes/default.css' media='all' />
<main role="main" class="container-fluid m-0 p-0">
<div class="container">
<h1 class="text-center post-title mt-5"><span><?php the_title(); ?></span></h1>
<div id="robots" class="mt-5 text-center"></div>
<article id="post-<?php echo $post_id; ?>" <?php post_class(); ?>>
<div class="post-content">
<ul class="btn-list">
<li>
<a class="btn" href="/botwiki-submission-guidelines/" target="_blank">Submission Guidelines</a>
</li>
<li>
<a class="btn" href="https://botsin.space/@newonbotwiki" target="_blank">@[email protected]</a>
</li>
<li>
<a class="btn" href="/botwiki-weekly-digest/" target="_blank">Weekly Digest</a>
</li>
<!-- <li>
<a class="btn" href="https://botmakers.org/" target="_blank">botmakers.org</a>
</li> -->
<?php if ( is_user_logged_in() && get_current_user_id() === 1 ) {?>
<li>
<button class="btn" id="test" href="#">Test submission</button>
</li>
<?php } ?>
</ul>
<?php echo do_shortcode( get_post_field( 'post_content', $post_id ) ); ?>
<form id="submit-bot-form" method="post" class="mt-5 bg-light p-5">
<?php if ( is_user_logged_in() ) {
$author_id = get_current_user_id();
$username = get_the_author_meta( 'user_nicename', get_current_user_id() );
$profile_img_url = esc_attr( get_the_author_meta( 'profile-img-url', $author_id ) );
if ( empty( $profile_img_url ) ){
$profile_img_url = get_avatar_url( $author_id, array( 'size' => 360, 'scheme' => 'https' ) );
}
$botwiki_profile_page_url = get_site_url() . '/author/' . $username;
?>
<div id="logged-in-author" class="card mb-5">
<div class="card-body">
<div class="container">
<div class="row">
<div class="col-sm-2">
<a href="<?php echo $botwiki_profile_page_url; ?>">
<img loading="lazy" class="lazy-load img-thumbnail" style="width: 100%; height: 100%; max-width: 100px; max-height: 100px;" src="<?php echo $profile_img_url; ?>" data-src="<?php echo $profile_img_url; ?>">
</a>
</div>
<div class="col-sm-10">
<h5 class="card-title mt-1">You are logged in</h5>
<p class="card-text">This bot will be added to <a href="<?php echo $botwiki_profile_page_url; ?>">your profile</a>.</p>
<p>
<a id="disassociate-author" href="#"><em>This is not my bot.</em></a>
<input type="hidden" name="disassociate-author-input" value="false">
</p>
</div>
</div>
</div>
</div>
</div>
<?php } else { ?>
<div class="author-fields form-row">
<div class="form-group col-md-6">
<label for="author-1-name">Author's name</label>
<input type="text" class="form-control" id="author-1-name" name="author-names[]" placeholder="Author">
</div>
<div class="form-group col-md-6">
<label for="author-1-url">Author's URL</label>
<input type="url" class="form-control" id="author-1-url" name="author-urls[]" placeholder="https://mastodon.social/author">
</div>
</div>
<?php } ?>
<div class="form-group">
<button id="add-author-fields" class="btn">Add more authors</button>
</div>
<div class="form-group">
<label for="bot-name">What's your bot's name? <sup title="This field is required.">*</sup></label>
<input required type="text" class="form-control" id="bot-name" name="bot-name" placeholder="@coolbot" value="<?php echo $bot_name_val; ?>">
</div>
<div class="bot-info-fields form-row">
<div class="form-group col-md-12 mb-1">
<label>Where can we see your bot?<sup title="This field is required.">*</sup></label>
</div>
<div class="form-group col-md-6">
<label for="bot-info-1-url">URL</label>
<input required type="url" class="form-control" id="bot-info-1-url" name="bot-urls[]" placeholder="https://botsin.space/onecoolbot" value="<?php echo $bot_urls_val; ?>">
</div>
<div class="form-group col-md-6">
<label for="bot-info-1-network">Network</label>
<select required class="form-control js-select2" id="bot-info-1-network" name="bot-networks[]" placeholder="Twitter, Tumblr, Slack,..." data-minimum-input-length="0" data-tags="true">
<?php
$networks = get_terms( 'network', array(
'hide_empty' => false,
) );
foreach ( $networks as $network ) { ?>
<option <?php if ( $network->name === 'Mastodon' ){ echo 'selected '; } ?> value="<?php echo $network->slug ?>"><?php echo $network->name ?></option>
<?php }
?>
</select>
</div>
</div>
<div class="form-group">
<button id="add-bot-info-fields" class="btn">Add more networks</button>
</div>
<div id="bot-submitted-notice" class="d-none alert alert-warning" role="alert">
<p><strong>Heads up, it looks like someone already added this bot.</strong></p>
<div id="bot-submitted-output"></div>
<p class="mt-4">If you are the creator of the bot and would like to update your bot's description or apply for the <a href="/projects/botmaker-badges/" target="_blank">Botmaker Bagde</a>, feel free to reach out <a href="mailto:[email protected]" target="_blank">via email</a> or <a href="https://mastodon.social/@botwiki" target="_blank">on Mastodon</a>.</p>
</div>
<div class="form-group">
<label for="bot-description">What does your bot do? <sup title="This field is required.">*</sup></label>
<textarea required class="form-control" id="bot-description" name="bot-description" rows="3" placeholder="This bot makes..."><?php echo $bot_description_val; ?></textarea>
<small id="bot-description-help" class="form-text text-muted">You can select text to add links.</small>
</div>
<div class="form-group">
<label for="bot-tagline">A short tagline <sup title="This field is required.">*</sup></label>
<input required type="text" class="form-control" id="bot-tagline" name="bot-tagline" placeholder="A bot that does cool stuff." value="<?php echo $bot_tagline_val; ?>">
<small id="bot-tagline-help" class="form-text text-muted">This shows up in search.</small>
</div>
<div id="bot-selected-tweets-field" class="form-group">
<label for="bot-selected-tweets">Choose two posts from your bot that you like</label>
<textarea class="form-control" id="bot-selected-tweets" name="bot-selected-tweets" rows="3" placeholder="https://botsin.space/mycoolbot/status/123456789
https://botsin.space/mycoolbot/status/987654321"></textarea>
<small id="bot-selected-tweets-help" class="form-text text-muted">Paste just the URLs, one on each line, please. <?php if ( !empty( $bot_urls_val ) ){ ?>
<?php
global $helpers;
$bot_url_domain = $helpers->get_domain_from_url( $bot_urls_val );
$bot_username = $helpers->get_username_from_url( $bot_urls_val );
if ( $bot_url_domain === 'twitter.com' ){
$twitter_username = $bot_username['username_twitter'];
?>
| <a href="https://www.tweetsort.io/?user=<?php echo $twitter_username; ?>" target="_blank">TweetSort</a>
| <a href="https://socialbearing.com/search/user/<?php echo $twitter_username; ?>" target="_blank">Social Bearing</a>
<?php } elseif ( $helpers->is_mastodon_instance($bot_urls_val) ){
$fediverse_username = $bot_username['username'];
?>
| <a href="https://www.topmastodonposts.com/by/<?php echo $fediverse_username; ?>" target="_blank">Top Mastodon Posts</a>
<?php }
} ?></small>
</div>
<div class="form-group">
<label for="bot-source-language">What languages and libraries did you use to make your bot?</label>
<select class="form-control js-select2" id="bot-source-language" name="bot-source-language[]" multiple="multiple" placeholder="node.js, Python, Java..." data-minimum-input-length="0" data-tags="true">
<?php
$languages = get_terms( 'programing_language', array(
'hide_empty' => false,
) );
foreach ( $languages as $language ) { ?>
<option value="<?php echo $language->slug ?>"><?php echo $language->name ?></option>
<?php }
?>
</select>
</div>
<div class="form-group">
<label for="bot-source-url">Is your bot open-sourced?</label>
<textarea class="form-control" id="bot-source-url" name="bot-source-url" placeholder="https://github.com/me/mycoolbot"></textarea>
<small id="bot-source-url-help" class="form-text text-muted">Don't worry about <a href="https://botwiki.org/blog/poll-sharing-your-bots-source-code/" target="_blank">"<u>messy code</u>"</a>! Share any links to your bot's repo on GitHub, Bitbucket, etc. You can add multiple URLs, one on each line.</small>
</div>
<div class="row">
<div class="col-sm-12 col-md-6">
<div class="form-check mb-2">
<input type="checkbox" class="form-check-input" id="bot-is-interactive" name="bot-is-interactive">
<label class="form-check-label" for="bot-is-interactive">This bot is interactive</label>
<small id="bot-is-interactive-help" class="form-text text-muted">Responds to messages, applies effects to images, etc.</small>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="form-check mb-2">
<input type="checkbox" class="form-check-input" id="is-authors-first-bot" name="is-authors-first-bot">
<label class="form-check-label" for="is-authors-first-bot">This is my first bot</label>
<small id="is-authors-first-bot-help" class="form-text text-muted">We'll tag it with <a target="_blank" href="https://botwiki.org/bot/?tags=myfirstbot">#MyFirstBot</a>.</small>
</div>
</div>
</div>
<div class="form-group mt-3">
<label for="bot-tags">Tag your bot <sup title="This field is required.">*</sup></label>
<select required class="form-control js-select2" id="bot-tags" name="bot-tags[]" multiple="multiple" data-minimum-input-length="1" data-tags="true" data-ajax="/wp-json/wp/v2/tags?search=" placeholder="Type to search...">
</select>
<div id="bot-tags-help" class="form-text form-help-text text-muted mt-3">
<p>Add as many relevant tags as you can, this will make it easier for others to find your submission. <strong>You don't need to add tags based on your bot's network or programming language</strong>, for example <code>#twitterbot</code> or <code>#python</code>. These tags are added automatically based on provided information.</p>
</div>
</div>
<div class="form-check mt-3 mb-2">
<input type="checkbox" class="form-check-input" id="apply-for-botmaker-badge" name="apply-for-botmaker-badge">
<label class="form-check-label" for="apply-for-botmaker-badge">Apply for <a target="_blank" href="/botmaker-badges/">Botmaker Badge</a></label>
</div>
<div id="botmaker-badge-application" class="mt-3 d-none">
<div class="form-group">
<label for="bot-author-email">List of email addresses of all authors</label>
<textarea class="form-control" id="bot-author-email" name="bot-author-email" rows="3" placeholder="[email protected]"></textarea>
<small id="bot-author-email-help" class="form-text text-muted">We will send your badge to these email addresses. No spam, ever!</small>
</div>
</div>
<button id="bot-form-submit" type="submit" class="btn mt-4">Okay, looks good</button>
</form>
</div>
</article>
</div>
</main>
<script type="text/javascript" src="<?php bloginfo( 'template_directory' ) ?>/libs/medium-editor/5.23.3/js/medium-editor.min.js"></script>
<?php }
?>
<?php get_footer(); ?>