https://github.com/merkremont/LineVodkaからボットスクリプトを入手しました
このスクリプトを追加したいのですが、構文エラー/予期しないインデントと表示されます
elif msg.text in ["Tag all","Tagall"]:
if msg.from_ in admin:
group = client.getGroup(msg.to)
nama = [contact.mid for contact in group.members]
cb = ""
cb2 = ""
strt = int(0)
akh = int(0)
for md in nama:
akh = akh + int(6)
cb += """{"S":"""+json.dumps(str(strt))+""","E":"""+json.dumps(str(akh))+""","M":"""+json.dumps(md)+"},"""
strt = strt + int(7)
akh = akh + 1
cb2 += "@nrik \n"
cb = (cb[:int(len(cb)-1)])
msg.contentType = 0
msg.text = cb2
msg.contentMetadata ={'MENTION':'{"MENTIONEES":['+cb+']}','EMTVER':'4'}
try:
sendMessage(msg)
except Exception as error:
print error