mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 19:52:36 +01:00
replace "is" with pair of brackets (imgur)
What imgur calls "title" is possibly better described as a caption. Most titles in imgur's gallery are full sentences, making the current behaviour of "xxx is yyy" fall flat, as the resulting string does not have satisfactory grammar. This commit changes the functionality from "[foo is bar]" to "[foo][bar]". Untested.
This commit is contained in:
parent
04edd2cd7f
commit
0f9da5c40e
@ -14,7 +14,7 @@ var imgur = function(dbot) {
|
||||
imgData = imgData.data;
|
||||
info = '[';
|
||||
if(imgData.title) {
|
||||
info += imgData.title + ' is ';
|
||||
info += imgData.title + '][';
|
||||
}
|
||||
if(imgData.type) {
|
||||
if(imgData.animated) {
|
||||
|
Loading…
Reference in New Issue
Block a user